Grasshopper

algorithmic modeling for Rhino

Hi guys,

I would like to know if any of you have the delaunay triangulation 3D algorithm as a code (input: points, output: lines). 

Thank you

Views: 1728

Replies to This Discussion

Code? you mean C#? If so get 2 ways to skin a cat (with regard the "average" plane, that is).

BTW: Del DOESN'T actually work in "real" 3d collections: you'll need a BPA thingy for the job

best, The Lord of Darkness

Attachments:

BTW: by "real" 3d I mean this type of stuff (BPA is an IBM brainchild, back in the good old days when IBM ruled the known world).

Thanks for the suggestion!

When you say Delaunay triangulation 3D, you mean Delaunay 3D as in creating tetrahedrons from a 3D point cloud? (as opposed to 2.5 Delaunay that triangulates points projected to a plane)

If you only need the lines and not the cells, you can use the Voronoi 3D component to find the neighbors for each point and connect them with lines. If you need the closed cells you can try the library I linked here:

http://www.grasshopper3d.com/forum/topics/pyhull-in-ironpython-2-7-0

Hey, yes I mean the delaunay 3D as in creating tetrahedrons. I know already how to do it with the voronoi component in grasshopper but I am missing the code for vornoi or delaunay. 

Here you have. It uses the dll I posted in the previous link.

I added the B output of the scripting component in case you want to discard the boundary cells.

Attachments:

really nice Vincente!

could this maybe be added to milkbox.

best

alex

Sure, but remember it relies on an external assembly.

ah ok. i cant recall at the moment if there are rules about it in milkbox. there is a relevant post but it is rather old. Mateuzs could sort this out once you contact him for the contribution.

Thanks a lot! 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service