Grasshopper

algorithmic modeling for Rhino

Hi all,

I need to use the Delaunay and Quadrangulate functions within a C# script. Somehow I can't find the equivalent in Rhino Common. Can someone help?

Thanks a lot in advance!!!

Views: 1256

Replies to This Discussion

Delaunay is not part of Rhinocommon but of Grasshopper. The VB code to create a delaunay mesh would be:


Dim nodes As New Grasshopper.Kernel.Geometry.Node2List
For i As Integer = 0 To p.Count - 1
nodes.Append(New Grasshopper.Kernel.Geometry.Node2(p(i).x, p(i).y))
Next
Dim m As mesh = grasshopper.Kernel.Geometry.Delaunay.Solver.Solve_Mesh(nodes, 0, Nothing)
a = m

The input is 'p' as a list of points.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service