I need to find the closest point on a surface to another arbitrary point.
I’m using GetClosestPoint(), but it finds the point on the whole (untrimmed) surface.
Is there a way to find the closest point on visible part of surface?
A trimmed surface is always a boundary representation, a.k.a. B-rep (i.e. of type ON_Brep). So, you need an ON_Brep object, and then you can use RhinoBrepClosestPoint(...), defined in the header rhinoSdkUtilities.h
So it seems like I have to determine such wrong points somehow and for them calculate closest points to brep’s trim curve (somehow extracted 3d trim curve)
Am I on the a proper way?