Grasshopper

algorithmic modeling for Rhino

[Python] Converting "Rhino.Geometry.Rectangle3d" to "Rhino.Geometry.Curve"

I guess it is dead simple again, but everything I tried didn't work. When I uncomment the last line of the left script I get an "Runtime error (InvalidCastException): Object of Type  "Rhino.Geometry.Rectangle3d" cannot be converted to "Rhino.Geometry.Curve". Could someone please be so kind to tell me how this needs to be done?

Views: 694

Replies to This Discussion

try C.ToNurbsCurve()

Also you can set the input Type hint to Curve do this for you.

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