Grasshopper

algorithmic modeling for Rhino

Hi All,

 

Does anyone know how to get a polyline from a nurbscurve??

 

Polyline pl = crv.ToPolyline(0, 0, 0.0, 0.0, 0.0, var, 0.0, 0.0, true);

 

I have tried in this way but it returns error saying "cannot convert polyline curve to polyline... I need to get a 'polyline'... :( for next step...

 

Thanks!

Views: 2386

Replies to This Discussion

I usually use the TryGetPolyline() method for this. Maybe an example would help with trouble shooting :)

it works!!!! thank you so much~!

Great, glad it worked.

Hi JHLee,
I'd say the problem is you fed it only zero's: 0 segments for the polyline could be a problem.. ;)

I think it still works even if I put 0 for the segments count..unless I put all inputs as 0 or 0.0.. I am not sure though;;;;

Indeed, you're right.

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