Grasshopper

algorithmic modeling for Rhino

Hi All,

 

Can anyone help me access a surface's control points and edit points (greville points) in VB Rhinocommon for Grasshopper? I've tried everything that I can think of... 

 

It seems like there is a NurbsSurfacePointList under Rhino.Collections, but I'm not sure how to implement it.

 

Thanks!

 


Views: 1468

Replies to This Discussion

If you have a Surface object, it looks like you can use the Surface.ToNurbsSurface() method, which should give you a NurbsSurface object. If you get the NurbsSruface.Points attribute, it should return a NurbsSurfacePointList object.

 

if 'srf' is a Surface (in Python, sorry, my VB is rusty):

nurbsSrf  = srf.ToNurbsSurface()

pointList = nurbsSrf.Points

u, v = 1, 3

ctrlPoint = pointList.GetControlPoint(u, v)

 

I hope that helps

Hi Andre,

 

if you have a NurbsSurface, you can access the Control-points and Greville-points via the Points property:

 

Dim srf As NurbsSurface = blahblahblah

srf.Points.XXXX

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service