I’m trying to take sections of a scanned mesh at various points and orientations, and I’m finding it challenging to sort out and only get the sections I want given the input is one continuous mesh that has multiple protrusions, and I’m looking to only take one intersection per protrusion and limit the range of the intersection to only output the first intersection with the mesh, as originating from planes/points that are identified inside.
I can’t share the original context so I’ve prepared an example definition that shows the general shape of the problem:
What I’m looking for is rather than getting intersections through the whole mesh on every intersection plane radiating out from each center point on the protrusions, I only want the first intersection, and I expect I’ll either need to generate all intersections and down-filter by the curve with the closest points, or use ray-casting/intersect in a more nuanced way than the default component offers.
I needed to graft the incoming planes to the mesh/plane intersection, so that everything had the correct tree depth. Of course as soon as the section goes from the desired sub-section to overlapping with the base object (due to the angle or height offset) it messes up, but it’s progress:
This is just a proxy assemblage to represent something loosely similar to the task I’m up against: the original case isn’t a constructed-and-unioned thing that I can go back into earlier step in the definition and handle separate bodies from. If it was, I would
Assume the starting point, for all sakes and purposes, is the mesh generated at the end of the construction step, which is loosely equivalent to a 3d scan of an object where I want cross-sections of individual protrusions.
The protrusions are not all normal to the surface, they vary in angle, so the slice angle will be driven by a medial axis running through each one (hence why these aren’t all just horizontal).