Conversation
|
Waiting to review this to see if @yetisir wants to take a look at it. |
|
I’m not sure what would be the most pythonic way to support plane collections as the underlying filter typically takes more than one plane. Should we implement origin and normal being lists of the same length? I feel the type checking there could get messy |
|
Awesome! Thanks @banesullivan - that is exactly what I had in mind. Wrt multiple planes - I agree things could get messy. My previous implementation only accepted one plane, and when I needed to use multiple planes (rarely) I would just pass the mesh through the filter for each plane. For simplicity - I think just one plane is perfectly fine - that way the interface is the same as the clip() method. I think most users would only be looking to clip with one plane anyways. LGTM |
I think this sounds like the simplest and most intuitive approach. |
akaszynski
left a comment
There was a problem hiding this comment.
Checking for it to be manifold was a good touch. Thanks for adding this!
See #794
This only supports single plane clipping though the underlying VTK filter supports plane collections.