misiing and doubled objects in BMVert.link_* sequences #41786

Closed
opened 2014-09-11 13:19:13 +02:00 by Michał Pilch · 12 comments

System Information
Debian Linux Unstable (Sid 09.2014), Radeon HD 6570

Blender Version
Broken: 2.71, 9337574

Short description of error

**Exact steps for others to reproduce the
bug_report.blend

**System Information** Debian Linux Unstable (Sid 09.2014), Radeon HD 6570 **Blender Version** Broken: 2.71, 9337574 **Short description of error** **Exact steps for others to reproduce the [bug_report.blend](https://archive.blender.org/developer/F109876/bug_report.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Pilchu

Added subscriber: @Pilchu
Author

Removed subscriber: @Pilchu

Removed subscriber: @Pilchu
Author

Added subscriber: @Pilchu

Added subscriber: @Pilchu

Added subscriber: @mont29

Added subscriber: @mont29

Please make a complete bug report!!! I nearly closed this as invalid!

Please make a complete bug report!!! I nearly closed this as invalid!
Author

Sorry. I've accidentaly pressed shift with enter before I've described a problem.
I can't edit this task so here is the complete description:

Short description of error:
When running script some vertices has in their linked sequences doubled faces/loops and some of them are missing.

Exact steps for others to reproduce
On attached file we have two objects. One is affect of used 'Slice Mesh' operator included to the file and its output is:

**<BMLoop(0x7fef57ddd7c0), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598ee360/113, face=0x7fef59f56a30/412>**
<BMLoop(0x7fef57dd5db0), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598f2960/337, face=0x7fef59f574b0/460>
<BMLoop(0x7fef57dd5bb8), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598f9e40/711, face=0x7fef59f57478/459>
**<BMLoop(0x7fef57ddd7c0), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598ee360/113, face=0x7fef59f56a30/412>**
<BMLoop(0x7fef57ddd928), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598fd270/878, face=0x7fef59f57168/445>
<BMLoop(0x7fef57ddfdb8), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598fe3f0/934, face=0x7fef59f57130/444>

So face with index 412 is doubled but there is no face with index 413 (this is the face that was undone on this vertex)
After running operator running code from console:

import bmesh
bm = bmesh.from_edit_mesh(bpy.context.object.data)
for l in bm.verts[287].link_loops:
    print(l)

gives proper output:

<BMLoop(0x7fef57c379d0), index=-1, vert=0x7fef597ceed8/287, edge=0x7fef57eb6360/113, face=0x7fef5992ba30/412>
<BMLoop(0x7fef57c39a70), index=-1, vert=0x7fef597ceed8/287, edge=0x7fef57ec5270/878, face=0x7fef5992c168/445>
<BMLoop(0x7fef57c39950), index=-1, vert=0x7fef597ceed8/287, edge=0x7fef57ec63f0/934, face=0x7fef5992c130/444>
<BMLoop(0x7fef57c37b38), index=-1, vert=0x7fef597ceed8/287, edge=0x7fef57a82870/2740, face=0x7fef5992ba68/413>

I've noticed that it occures only on vertices from original mesh that lays on intersecting planes.

PS.
Sorry for my english.

Sorry. I've accidentaly pressed shift with enter before I've described a problem. I can't edit this task so here is the complete description: **Short description of error:** When running script some vertices has in their linked sequences doubled faces/loops and some of them are missing. **Exact steps for others to reproduce** On attached file we have two objects. One is affect of used 'Slice Mesh' operator included to the file and its output is: ``` **<BMLoop(0x7fef57ddd7c0), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598ee360/113, face=0x7fef59f56a30/412>** <BMLoop(0x7fef57dd5db0), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598f2960/337, face=0x7fef59f574b0/460> <BMLoop(0x7fef57dd5bb8), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598f9e40/711, face=0x7fef59f57478/459> **<BMLoop(0x7fef57ddd7c0), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598ee360/113, face=0x7fef59f56a30/412>** <BMLoop(0x7fef57ddd928), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598fd270/878, face=0x7fef59f57168/445> <BMLoop(0x7fef57ddfdb8), index=-1, vert=0x7fef59ad5ed8/287, edge=0x7fef598fe3f0/934, face=0x7fef59f57130/444> ``` So face with index 412 is doubled but there is no face with index 413 (this is the face that was undone on this vertex) After running operator running code from console: ``` import bmesh bm = bmesh.from_edit_mesh(bpy.context.object.data) for l in bm.verts[287].link_loops: print(l) ``` gives proper output: ``` <BMLoop(0x7fef57c379d0), index=-1, vert=0x7fef597ceed8/287, edge=0x7fef57eb6360/113, face=0x7fef5992ba30/412> <BMLoop(0x7fef57c39a70), index=-1, vert=0x7fef597ceed8/287, edge=0x7fef57ec5270/878, face=0x7fef5992c168/445> <BMLoop(0x7fef57c39950), index=-1, vert=0x7fef597ceed8/287, edge=0x7fef57ec63f0/934, face=0x7fef5992c130/444> <BMLoop(0x7fef57c37b38), index=-1, vert=0x7fef597ceed8/287, edge=0x7fef57a82870/2740, face=0x7fef5992ba68/413> ``` I've noticed that it occures only on vertices from original mesh that lays on intersecting planes. PS. Sorry for my english.

OK, no problem. :)

OK, no problem. :)
Campbell Barton was assigned by Bastien Montagne 2014-09-12 12:04:58 +02:00

This looks like some kind of missing update in bmesh? Not quite sure though, Campbell, this is your playground! :)

This looks like some kind of missing update in bmesh? Not quite sure though, Campbell, this is your playground! :)

Not sure how to redo this report,

I load bug_report.blend and run the script paper_models_tools.py

Then run the script:

  import bpy
  import bmesh
  bm = bmesh.from_edit_mesh(bpy.context.object.data)
  for l in bm.verts[287].link_loops:
      print(l)

It prints

  <BMLoop(0x61827a0), index=1400, vert=0x6d82c28/287, edge=0x474cdc0/113, face=0x62e8960/412>
  <BMLoop(0x6184840), index=1516, vert=0x6d82c28/287, edge=0x475bcd0/878, face=0x62e9098/445>
  <BMLoop(0x6184720), index=1512, vert=0x6d82c28/287, edge=0x475ce50/934, face=0x62e9060/444>
  <BMLoop(0x6182908), index=1405, vert=0x6d82c28/287, edge=0x5dbdc10/2740, face=0x62e8998/413>

Do I need to do some other steps?

Not sure how to redo this report, I load `bug_report.blend` and run the script `paper_models_tools.py` Then run the script: ``` import bpy import bmesh bm = bmesh.from_edit_mesh(bpy.context.object.data) for l in bm.verts[287].link_loops: print(l) ``` It prints ``` <BMLoop(0x61827a0), index=1400, vert=0x6d82c28/287, edge=0x474cdc0/113, face=0x62e8960/412> <BMLoop(0x6184840), index=1516, vert=0x6d82c28/287, edge=0x475bcd0/878, face=0x62e9098/445> <BMLoop(0x6184720), index=1512, vert=0x6d82c28/287, edge=0x475ce50/934, face=0x62e9060/444> <BMLoop(0x6182908), index=1405, vert=0x6d82c28/287, edge=0x5dbdc10/2740, face=0x62e8998/413> ``` Do I need to do some other steps?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

One week without news.

One week without news.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#41786
No description provided.