Hi
Using Mesh.CreateFromTessellation in rhinocommon I’m able to get a mesh similar to what the delaunay mesh component in Grasshopper produces except for some extra faces along the outer edges. I managed to get rid of most of these faces by checking if the face normals are close to vertical, but this process is slow and does not get rid of all of them. Does anyone know how to get a similar result as the delaunay mesh component in Grasshopper?
import Rhino.Geometry as rg
mesh = rg.Mesh.CreateFromTessellation(points, list(), rg.Plane.WorldXY, False)
normals = mesh.FaceNormals
mask = [normal.EpsilonEquals(rg.Vector3d.ZAxis, 0.99) for normal in normals]
mesh = rg.Mesh.CreateFromFilteredFaceList(mesh, mask)
5 posts - 3 participants
