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
Tags:
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.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by