Grasshopper

algorithmic modeling for Rhino

 

Hi

 

Usually when using the old SDK I would do something like this:

 

OnCircle circleBorder = new OnCircle(brepCenter, diagDist);
OnCurve circleCrv = (OnCurve) ((OnArcCurve) circleBorder);

 

In the new RhinoCommon SDK I do something like this:

 

Circle circleBorder = new Circle(brepCenter,diagDist);

Curve circleCrv = ?

 

How do I get a curve representation from the circle?

 

Regards

Thomas

 

Views: 1605

Replies to This Discussion

Hi Thomas,

Curve circleCrv = new ArcCurve(circleBorder);

or

Curve circleCrv = circleBorder.ToNurbsCurve();

these will give two different objects. Their appearance will be similar.
The example posted above is the first version.

http://www.rhino3d.com/5/rhinocommon/html/M_Rhino_Geometry_ArcCurve...

- Giulio
_____________
giulio@mcneel.com
McNeel Europe

 

Thanks Giulio

 

Im in the process of transitioning to RhinoCommon SDK, so theres alot of work rewriting code. But I gotta say, the new SDK is way more intuitive.

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