cut solid with a solid

cut solid with a solid

pnoZFP35
Explorer Explorer
550 Views
4 Replies
Message 1 of 5

cut solid with a solid

pnoZFP35
Explorer
Explorer

I create solids with this line of code until I have the solids I need

Solid SolidInstance = GeometryCreationUtilities.CreateLoftGeometry(CurveLoop, solidOptions);

and when I have the solids I want to take the first solid and use the rest of the solids to cut the first solid so I can get a solid that look like this 

pnoZFP35_0-1664885833932.png

but I cant find what I need to cut the Solids, what have I missed how can I cut solids?

0 Likes
Accepted solutions (1)
551 Views
4 Replies
Replies (4)
Message 2 of 5

RPTHOMAS108
Mentor
Mentor
Accepted solution

BooleanOperationsUtils.ExecuteBooleanOperation

 

BooleanOperationsType.Difference

 

Sometimes these things are a bit hit and miss though depending on tolerances.

 

 

0 Likes
Message 3 of 5

pnoZFP35
Explorer
Explorer

thanks for the help it worked, must have missed it. didn't know the BooleanOperationsType.Difference was for cutting solid

0 Likes
Message 4 of 5

RPTHOMAS108
Mentor
Mentor

Yes it is a bit of a strange one in a sense.

 

Ordinarily 'difference' would be the parts from two solids that don't intersect (the opposite of 'intersect'). However, I believe that the logic is that since you are changing just one of the input solids you only get the difference volume of that solid. Otherwise, you would end up with two volumes joined together by edges alone. It is actually quite common in a lot of modelling programs for 'difference' to be thought of as cut.

 

In AutoCAD they have 'subtract' which is more obvious terminology perhaps.

Message 5 of 5

rhanzlick
Advocate
Advocate
We struggled before gaining this understanding as well, but in my experience, it works exactly as you've described.
0 Likes