bmesh.ops.bisect_plane()['geom_cut']
doesn't seem to include all the new edges #119980
Labels
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#119980
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: macOS-14.2.1-x86_64-i386-64bit 64 Bits
Graphics card: Metal API AMD Radeon Pro 5500M 1.2
Blender Version
Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash:
40a5e739e270
Worked: (newest version of Blender that worked as expected)
Short description of error
the ensure_lookup_table is not holding the indexes of geometry
Exact steps for others to reproduce the error
here's a test script, select a cube and run it
you'll notice that everything after the 4th edge is moved. this is the exact behavior that function is supposed to prevent.
This issue is new to 4.1, was not in the 4.0 releases.
here's my results
BEFORE
<BMEdge(0x7fe2e0620010), index=0, verts=(0x7fe28a834080/2, 0x7fe28a834010/0)>
<BMEdge(0x7fe2e0620060), index=1, verts=(0x7fe28a834010/0, 0x7fe28a834048/1)>
<BMEdge(0x7fe2e06200b0), index=2, verts=(0x7fe28a834048/1, 0x7fe28a8340b8/3)>
<BMEdge(0x7fe2e0620100), index=3, verts=(0x7fe28a8340b8/3, 0x7fe28a834080/2)>
<BMEdge(0x7fe2e0620150), index=4, verts=(0x7fe28a834160/6, 0x7fe28a834080/2)>
<BMEdge(0x7fe2e06201a0), index=5, verts=(0x7fe28a8340b8/3, 0x7fe28a834198/7)>
<BMEdge(0x7fe2e06201f0), index=6, verts=(0x7fe28a834198/7, 0x7fe28a834160/6)>
<BMEdge(0x7fe2e0620240), index=7, verts=(0x7fe28a8340f0/4, 0x7fe28a834160/6)>
<BMEdge(0x7fe2e0620290), index=8, verts=(0x7fe28a834198/7, 0x7fe28a834128/5)>
<BMEdge(0x7fe2e06202e0), index=9, verts=(0x7fe28a834128/5, 0x7fe28a8340f0/4)>
<BMEdge(0x7fe2e0620330), index=10, verts=(0x7fe28a834010/0, 0x7fe28a8340f0/4)>
<BMEdge(0x7fe2e0620380), index=11, verts=(0x7fe28a834128/5, 0x7fe28a834048/1)>
AFTER
<BMEdge(0x7fe2e0620010), index=0, verts=(0x7fe28a834080/2, 0x7fe28a834010/0)>
<BMEdge(0x7fe2e0620060), index=1, verts=(0x7fe28a834010/0, 0x7fe28a834048/1)>
<BMEdge(0x7fe2e06200b0), index=2, verts=(0x7fe28a834048/1, 0x7fe28a8340b8/3)>
<BMEdge(0x7fe2e0620100), index=3, verts=(0x7fe28a8340b8/3, 0x7fe28a834080/2)>
<BMEdge(0x7fe2e0620150), index=4, verts=(0x7fe28a8341d0/8, 0x7fe28a834080/2)>
<BMEdge(0x7fe2e06201a0), index=5, verts=(0x7fe28a834208/9, 0x7fe28a834198/7)>
<BMEdge(0x7fe2e06201f0), index=6, verts=(0x7fe28a834198/7, 0x7fe28a834160/6)>
<BMEdge(0x7fe2e0620240), index=7, verts=(0x7fe28a8340f0/4, 0x7fe28a834160/6)>
<BMEdge(0x7fe2e0620290), index=8, verts=(0x7fe28a834198/7, 0x7fe28a834128/5)>
<BMEdge(0x7fe2e06202e0), index=9, verts=(0x7fe28a834128/5, 0x7fe28a8340f0/4)>
<BMEdge(0x7fe2e0620330), index=10, verts=(0x7fe28a834240/10, 0x7fe28a8340f0/4)>
<BMEdge(0x7fe2e0620380), index=11, verts=(0x7fe28a834278/11, 0x7fe28a834048/1)>
<BMEdge(0x7fe2e06203d0), index=12, verts=(0x7fe28a834160/6, 0x7fe28a8341d0/8)>
<BMEdge(0x7fe2e0620420), index=13, verts=(0x7fe28a8340b8/3, 0x7fe28a834208/9)>
<BMEdge(0x7fe2e0620470), index=14, verts=(0x7fe28a834010/0, 0x7fe28a834240/10)>
<BMEdge(0x7fe2e06204c0), index=15, verts=(0x7fe28a834128/5, 0x7fe28a834278/11)>
<BMEdge(0x7fe2e0620510), index=16, verts=(0x7fe28a834278/11, 0x7fe28a834240/10)>
<BMEdge(0x7fe2e0620560), index=17, verts=(0x7fe28a834208/9, 0x7fe28a834278/11)>
<BMEdge(0x7fe2e06205b0), index=18, verts=(0x7fe28a834208/9, 0x7fe28a8341d0/8)>
<BMEdge(0x7fe2e0620600), index=19, verts=(0x7fe28a8341d0/8, 0x7fe28a834240/10)>
I'm not sure I understood the part where
everything after the 4th edge is moved
. From my test, 4.0~4.2 all give similar printed result, and the geometry is correctly bisected. Could you clarify the difference you see and what is the result you are expecting?yes. I may be reading this wrong. There is certainly a difference between 4.0 and 4.1 for me in this area but it may have more to do with the bisect plane?
in 4.0, I can run multiple bisect planes and each one will select the the geo_cut then loop where I grab the edges selected and bisect again.
in 3.6->4.0 it goers through all the cuts fine. In 4.1 it can't find the some of the selected edges to add to the geo list for bisect plane .
previously when I had this same exact issue it's because I needed to ensure the lookup table.
This time I'm not sure, I bypassed this for now by looping through geo returned from bisect plane instead of geo_cut and filtered by edges to select them, and that works for me...
so something certainly changed and I can workaround it.
I apologize if I mis diagnosed the function that has the issue
@Anthong The order of geometry indices should not be expected to stay the same after any topology operations if that's what the
can't find the some of the selected edges
part was about.However the function should always ensure a valid table for lookup, so do you have what exactly you are expecting it to return? In what format or order?
I have a new example script that shows the exact issue I ran into. I tested in 4.0.2 vs 4.1
the second bisect plane doesnt work in 4.1 because the geometry isnt selected.
so this might be a difference in the return output of bisect_plane?
I did find a workaround to this. but this is a change that wasnt in the changelog.
let me know if you'd like me to create a separate bug.
sorry, closed by accident
I see, this is indeed a bit different. Can confirm the issue.
There seem to be one commit of interest recently,Edit: this is not the breaking commit. Need bisecting.dcb2c0bdf6
, let me test itbmesh ensure_lookup_table appears to be brokento `bmesh.ops.bisect_plane()['geom_cut']` doesn't seem to include all the new edges