What are the difference between “Curve” and “Nurbscurve” class

I am working on a plug-in of grasshopper. I find Curve class only can be created by List or Array. But NurbsCurve can be create a single new.

I want to know What are the difference between “Curve” and “Nurbscurve” class in Rhino.Geometry?

The Curve is the base class for a variety of other curve types. If you look at the Inheritance Hierarchy in the docs you can see all the classes which inherit from Curve. NurbsCurve is one of these.

https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_Curve.htm#fullInheritance

You can think of the Curve as a general type for curves, and the NURBS curve as a specific type of curve. If you’re still confused a quick read on some Object Oriented Programming might be useful.

1 Like