Hello -
I am trying to change Python code from RhinoScriptSyntax to RhinoCommon. Currently, the script uses the Rhino.Geometry.Mesh.ClosestMeshPoint method. This is critical to the script working.
Using RhinoCommon, importing an OBJ file leaves me with a Rhino.DocObjects.MeshObject. This is nice because I use the Rhino.DocObjects.MeshObject from it for some calculations. However, there is no ClosestMeshPoint method.
How can I start with the Rhino.DocObjects.MeshObject (from importing an OBJ) and end up with a Rhino.Geometry.Mesh so that I can use the ClosestMeshPoint method?
The reason I am doing this is so the script can be moved to Rhino.Inside using Python.