I have a mesh I’m trying to import as follows:
RhinoApp.RunScript("_selnone -_import " & FileName & " weld=yes weldangle=22.5 splitdisjointmeshes=yes modelunits=millimeters _enter ", True)
FootID = doc.Objects.MostRecentObject().Id
Foot = TryCast(doc.Objects.Find(FootID).Geometry, Mesh)
This works fine if the file is an stl file. But if it is a ply file then the Foot variable doesn’t get populated with the mesh of the ply file. What is the proper way to get the mesh data of a ply file?