Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4174

Splitting / Trimming with Python

$
0
0

I have a spiral shaped cut around a cylinder, where I want to remove the strip that is in the spiral shape. I am trying to do this programmatically with python, but I’m not so sure where to begin with the methods for splitting/trimming objects from the brep class. I think this application is a little more tricky too, since I am splitting a cylinder the seam breaks up the cut so the result is more than just piece A and piece B.

The file below shows the objects I start with, and the desired goal that I would like to automate into a routine. In summary, it’s using a closed curve to split a brep surface which is periodic, and the closed curve goes across the surface seam multiple times.

trim_python_acrossSeams.3dm (365.5 KB)

Any general practices for splitting or adding trim curves to a brep would be really helpful, as I couldn’t find much in the McNeel Python Examples.

Below is the intended result; here I have manually picked the surfaces to get rid of.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4174

Latest Images

Trending Articles



Latest Images