-
This feels like I'm making a dumb newbie mistake. I am trying to split a solid body by an infinite face and I only want to keep the top (or bottom) part. But my .split() call ignores whatever I put in for the keepTop or keepBottom parameters. What I expect is only one body in I found the discussion at https://github.com/CadQuery/cadquery/issues/751 where they used .split(keepBottom=True) and it works as expected, but it isn't working in my code snip. Should I be using a Workplane or other thing instead of a Face for doing the cut? How would that work? Thanks in advance,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After further digging I found the .solids() method to keep only one of the solids. I used the DirectionMinMaxSelector with the same normal vector as the face:
This solved my issue and now I just keep the parts that I want. |
Beta Was this translation helpful? Give feedback.
After further digging I found the .solids() method to keep only one of the solids. I used the DirectionMinMaxSelector with the same normal vector as the face:
This solved my issue and now I just keep the parts that I want.