Grasshopper

algorithmic modeling for Rhino

If you are using the Delaunay solver in grasshopper

 

grasshopper.kernel.geometry.solver.solve_mesh(x,x,x)

 

you cannot have duplicate points in your node2 List. The solver gets confused (because it cant sort) and your mesh will be really silly. Before you make the mesh make sure to run it through a remove duplicate points loop like the following:

 

dim repL as new List(of point3d)
for i as int32 = 0 to ptl.count-1
dim tf as boolean = true
for j as int32 = 0 to repL.count-1
if ptl.item(i).distanceto(repL.item(j)) < .1 then
tf = false
exit for
end if
next
if tf then repL.add(ptl.item(i))
next
ptl = repL

 

Good Luck!

 

Views: 227

Replies to This Discussion

or use point3d.cullduplicates :|

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service