Hello all.
I’m fairly new to the extension development, and I’m running into a road block… I have a ruby script that trims a group A (solid) based on another group B (solid), which works great.
My question is, how can I limit or stop the trim from occurring if group A overlaps say a group C? I’m looking for an if statement check prior to trim.
The solid operations do not give enough fine-grained access to use if statements. They are “atomic” operations with a clearly defined input and result.
Think of it like a set operation. If you want to protect those parts of A overlapping with C from being trimmed by B, they must not overlap with B.
Determining intersection of arbitrary solid volumes is a non-trivial problem. Usually only bounding-boxes are checked. Only if bounding-boxes intersect, the geometry may intersect or not.