I’m trying to get the max and min X,Z values for varying Y values. I need points along the mesh at various heights and angles. I’m using the FacetData interface and specifically the getClosestFacetAtCoordinates function.
It works sometimes but throws lots of errors and doesn’t produce consistent results. Any thoughts on where I’m going wrong?
I take the mesh bounding box X & Z as the radius to my angle (I may through 360 degrees at various increments). I have spheres at my input nearest points and for my facetData response.
Aside from this approach I’m also going to try CSG (CSG doesn’t seem to work right when my meshes are not closed, which is often), and I’ll try for mesh intersection / collision interface where I extrude a cylinder from my nearest point into the mesh.
Any direction would be greatly appreciated. Thanks!