Extension of mesh.bisect() by split to islands option #37254

Closed
opened 2013-10-29 21:54:42 +01:00 by Martin Felke · 18 comments
Member

%%%
Purpose:
This patch extends the mesh.bisect() operator by a split option. With this option you are able to create 2 independent Mesh Islands out of the mesh parts in
front of and behind the bisection plane. Together with the fill option both open mesh island cutting loops will be filled with a face each. This way you can quickly
fracture a mesh manually into shards.

Usage: Simply use the bisect operator as usual, and check the split checkbox and optionally the fill checkbox to see the new functionality.

scorpion81

%%%

%%% Purpose: This patch extends the mesh.bisect() operator by a split option. With this option you are able to create 2 independent Mesh Islands out of the mesh parts in front of and behind the bisection plane. Together with the fill option both open mesh island cutting loops will be filled with a face each. This way you can quickly fracture a mesh manually into shards. Usage: Simply use the bisect operator as usual, and check the split checkbox and optionally the fill checkbox to see the new functionality. scorpion81 %%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

%%%Patch V2:
Reimplementation with edge_split and edgenet_fill operators, additionally using a material index and a smooth option for inner faces (accepted by edgenet_fill operator%%%

%%%Patch V2: Reimplementation with edge_split and edgenet_fill operators, additionally using a material index and a smooth option for inner faces (accepted by edgenet_fill operator%%%
Campbell Barton was assigned by Sergey Sharybin 2013-12-28 17:07:48 +01:00

Added subscriber: @Sergey

Added subscriber: @Sergey

Cambo, mind checking on this?

Cambo, mind checking on this?
  • I rather bisect not do the filling its self (since you may want to fill in UV's materials etc from surrounding geometry). Rather bisect and the caller can fill.
  • Edgenet fill is not good in the context of bisect since it wont account for holes, this should use scanfill instead.
- I rather bisect not do the filling its self (since you may want to fill in UV's materials etc from surrounding geometry). Rather bisect and the caller can fill. - Edgenet fill is not good in the context of bisect since it wont account for holes, this should use scanfill instead.
Member

Added subscriber: @jta

Added subscriber: @jta
Member

It looks like this patch stalled so I am bumping it. Scorpion81, is this still needed or has a similar functionality been added somewhere else or with a different patch?
Thanks : )

It looks like this patch stalled so I am bumping it. Scorpion81, is this still needed or has a similar functionality been added somewhere else or with a different patch? Thanks : )

@scorpion81, did you look at updating this to use scanfill? it shouldnt be too much extra work to finish this off.

@scorpion81, did you look at updating this to use scanfill? it shouldnt be too much extra work to finish this off.
Author
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Author
Member

@ideasman42 , made a first attempt today, but i didnt manage it with triangle fill, unfortunately.
Triangle fill needs apparently the edges of the cut grouped by each face of the two sides of the cut.
Tried to wrap my head around on how best to separate those 2 edge sets.
But best result after filling one side of the mesh like before and splitting afterwards was a loose additional face, not being connected to the other piece of the cut.
So i ended up (for now) using fill_holes which can deal with the entire edge set, but i assume that isnt correct yet as well...
As the name says, holes will be filled there (instead of being retained) Will try further tomorrow and in the next time....
Or could you give me a hint on how to fix properly ?

bisect_split_v3.patch

@ideasman42 , made a first attempt today, but i didnt manage it with triangle fill, unfortunately. Triangle fill needs apparently the edges of the cut grouped by each face of the two sides of the cut. Tried to wrap my head around on how best to separate those 2 edge sets. But best result after filling one side of the mesh like before and splitting afterwards was a loose additional face, not being connected to the other piece of the cut. So i ended up (for now) using fill_holes which can deal with the entire edge set, but i assume that isnt correct yet as well... As the name says, holes will be filled there (instead of being retained) Will try further tomorrow and in the next time.... Or could you give me a hint on how to fix properly ? [bisect_split_v3.patch](https://archive.blender.org/developer/F146161/bisect_split_v3.patch)
Author
Member

argh, noticed unnecessary operator properties still being present in bisect operator (mat_nr, smooth) after posting it, so i have a fixed patch here

bisect_split_v3_fixed.patch

argh, noticed unnecessary operator properties still being present in bisect operator (mat_nr, smooth) after posting it, so i have a fixed patch here [bisect_split_v3_fixed.patch](https://archive.blender.org/developer/F146164/bisect_split_v3_fixed.patch)
Author
Member

Ok, i managed to get some working triangle fill solution as requested, but i really recommend to use patch v3_fixed...
as v4 here is very very shoddy imho.... but i couldnt get it better so far....
v3_fixed works like a charm for multiple bisects, while v4 really gets into trouble there.

bisect_split_v4.patch

Ok, i managed to get some working triangle fill solution as requested, but i really recommend to use patch v3_fixed... as v4 here is very very shoddy imho.... but i couldnt get it better so far.... v3_fixed works like a charm for multiple bisects, while v4 really gets into trouble there. [bisect_split_v4.patch](https://archive.blender.org/developer/F146336/bisect_split_v4.patch)
Author
Member

Ok, i fixed the wrong selection problem of v4 here, but v3_fixed still is better than v5 as the latter cant fill any sequential cuts i make,
(not even in default cube)
There are always some faces missing.

bisect_split_v5.patch

Ok, i fixed the wrong selection problem of v4 here, but v3_fixed still is better than v5 as the latter cant fill any sequential cuts i make, (not even in default cube) There are always some faces missing. [bisect_split_v5.patch](https://archive.blender.org/developer/F146695/bisect_split_v5.patch)

Added subscriber: @mont29

Added subscriber: @mont29
Campbell Barton removed their assignment 2016-08-11 06:37:41 +02:00

Removed subscriber: @ideasman42

Removed subscriber: @ideasman42

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Dalai Felinto self-assigned this 2019-12-23 18:45:13 +01:00

Hi, thanks for your patch.

We are undergoing a Tracker Curfew where we are automatically closing old patches.

If you think the patch is still relevant please update and re-submit it. For new features make sure there is a clear design from the user level perspective.

Hi, thanks for your patch. We are undergoing a [Tracker Curfew ](https://code.blender.org/?p=3861) where we are automatically closing old patches. If you think the patch is still relevant please update and re-submit it. For new features make sure there is a clear design from the user level perspective.
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
6 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#37254
No description provided.