This is a minimal example showing how the DelaunayMesh component is no longer working correctly from Python (_EditPythonScript context) in current versions of Rhino 6 (Version 6 SR34) and 7. I have tested this on more than one installation, have restarted, etc.
“Warning: Delaunay Mesh: solver component. warning: Triangulation resulted in an empty mesh”
This used to work correctly in previous versions for Rhino 6. (I have a project that was worked on for months that uses this. Looks like the last mod date was May 28, 2020.)
Please advise; we need to spin up this project again. Thank you.
import ghpythonlib.components as ghc from Rhino.Geometry import Point3d def delaunayMeshTest(): pts = [ Point3d(0,1,2), Point3d(4,5,6), Point3d(7,8,9) ] print( "len(pts): " + str( len(pts) ) ) mesh = ghc.DelaunayMesh( pts ) print( "mesh: " + str( mesh ) ) if __name__ == "__main__": delaunayMeshTest()