Grasshopper

algorithmic modeling for Rhino

Hi,
I am trying to explore the VB part of grasshopper. I am reading a set of data from excel, drawing the lines via VB and then wanting to draw a cylinder using those lines as the axis. I am not getting the cylinder to be displayed in the Rhino window despite the cylinder being "valid" as reported by the function" cylinder.IsValid".

I am able to draw spheres, circles, cones and other basic geometry just fine. Does anyone have any suggestions?

Thanks.

Views: 844

Attachments:

Replies to This Discussion

You have to convert the cylinder to a surface first. Try something like this:

Dim c As New OnCylinder(New OnCircle(onutil.On_xy_plane, 2), 4)
Dim srf As New OnNurbsSurface
c.GetNurbForm(srf)
a = srf

Since other primitives like spheres are passed along as surfaces automatically, i think David forgot the autoconversion for cylinders.
Thanks.
That seem to have fixed it.

Kermin

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service