A
A
Alexander Osherov2019-08-01 19:37:31
Python
Alexander Osherov, 2019-08-01 19:37:31

How to automatically cut a 3d model into 2 parts?

There are a lot of 3d's you need to cut each one into 2 parts and keep those parts. Models in stl. And the script is preferably in python3. It turned out to be difficult to implement in pure python, can it be much easier through api blender?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pavlyuk, 2019-08-01
@pav5000

The script for Blender should.
1. Import the model.
2. Create a box covering half of the model.
3. Apply the boolean modifier with subtract mode to the model. That is, subtract the box from the model.
4. Export the resulting model (this will be part 1)
5. Switch the boolean modifier to intersection mode. That is, leave only that part of the model that goes inside the box.
6. Export the resulting model (this will be part 2)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question