Linked Questions

2
votes
2answers
2k views

Python: Bisect mesh into n parts, without separate 'LOOSE'

Using Python I want to split a mesh into tiles. All the solutions to this question rely on bpy.ops.mesh.separate(type='LOOSE'). But this leads to problems in the ...
1
vote
2answers
765 views

Select random by loose parts

I have the following mesh. It are a series of hexagons on placed on a plane. No I try to select random hexagons to give them an other material. I know there is a select random function but that only ...
2
votes
2answers
160 views

How to detect disconnected parts within a selection?

Consider the following edge selection: What would be the fastest way to return the indices of the different parts of this selection? I am aiming for an output similar to this: edge_indices = [[24, 46,...
2
votes
1answer
577 views

Deleting islands (lose parts) of mesh with Python

My Goal is it to remove Islands from an 3D scanned object (3D printer purpose) with python. I was thinking something like: Getting all vertices Iterate through all vertices Save linked vertices and ...
1
vote
3answers
562 views

I am trying to create a Script that does a Smart UV unwrap of seperate connected parts of a mesh

This is what I got so far. Note that I have a counter which I check with 10 while I'm testing, so it doesn't pass through everything, since it takes quite a while. The reason for doing this is that ...
0
votes
2answers
437 views

BPY, how to select and separate one side of a road-like mesh with Python script?

I would like select left or right side of mesh like this and separate it from the object using script. Is it possible? Thanks in advance.
2
votes
0answers
462 views

Separate mesh into separate batches with python

I am working on an export / import addon for a custom model file format which stores its geometry in the so-called "render batches", the structures aimed at optimizing geometry for effecient live ...
5
votes
0answers
285 views

Is there a low level alternative for bpy.ops.mesh.separate()?

I am dealing with a great model, I have a problem, I want to divide it by parts, but bpy.ops.mesh.separate(type = 'LOOSE') seems to have a big problem, that is not ...
1
vote
1answer
163 views

Recursive search for selected vertices

i am working on a tool and need to get selection islands in the mesh. I want to keep only the biggest connected vertex selection in the mesh. I wrote a function that recursively searches a ...
1
vote
1answer
199 views

Python: Locate specific islands of geometry within a mesh object

If I have a mesh object, and the mesh data is made up of several disconnected islands of faces, and using Python I want to evaluate each island to check if it matches certain criteria, and if it does, ...
0
votes
1answer
132 views

Python to get and iterate loose mesh bodies

Say for example i have an object made up of 3 (or more) cubes, loose meshes. I wanted to use script to iterate each loose mesh (cube). Is it possible to loop through each loose body and store them in ...
1
vote
0answers
38 views

Make two objects out of two pieces separated by boolean difference modifier, in python script

How can I have two separate parts of a cut object with Boolean difference modifier in python code script? My simple code ...