Grasshopper

algorithmic modeling for Rhino

Hi,

How can I correctly duplicate a line via RhinoCommon?

Is it Line line = someOtherLine; ?

Or there is a specific method like someOtherLine.Duplicate()?

Thanks

Views: 695

Replies to This Discussion

Line is a struct, so just assigning it will create a duplicate.

Thank you.

I have one more question.
How to create a nurbs curve from points with different weight values? So that one part of curve is more smooth than other using rhinocommon?

I don't think you can create a curve directly with weights. You'll need to use the static Create() method for regular points, then assign weights one-by-one by accessing the control points via the NurbsCurve.Points.SetPoint method.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service