Grasshopper

algorithmic modeling for Rhino

Hi, is there any way to use the convex hull function inside a VB component?

Views: 2624

Replies to This Discussion

There's no way I could've known this right? Many thanks again

I am trying to use the convex hull solver but it only gives me a poly-line projected on the world plane. What I need is the poly-line connecting the 3d points in space or ideally the ordered 3d points themselves. The functionality exists in the GH component but I cannot find it in the solver class.

Also I am not sure why I cannot use Python list methods on point3d list (like pop, slice, remove) and if I can't how can I achieve these methods. Thanks!!!

Hi Vangel,

you have to use the Solver.Compute() method which takes a Node2List and a list of integers. This is the core solver function and the other functions just call this one. The hull output argument will have the indices you're looking for.

--

David Rutten

david@mcneel.com

Hi David,

Would you mind please clarifying your above post? I am trying to achieve the same thing as Vangel.

If I am reading your post correctly, I must use the Solver.Compute() method to get the polyline that contains my points in 3D. It is not clear to me, however, what the integers should be used as an input to Compute. 

Thank you for your help.

James

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service