Unset propert useage in Rhino.Geometry

Hi there,

I came accross the documentation for the method Unset

for example



and I don’t quite understand what it exactly does I tried a print test the output was a rhino geometry rectangle.I am curious to know where this can be used?

It can be used if you need an instance of the object in question, for instance a Rhino.Geometry.Plane that hasn’t been fully initialised, meaning that certain attributes haven’t been defined, which makes it unset. You can think of it as an empty or undefined object.

For example, Curve.CreateInterpolatedCurve() asks for start and end tangent direction vectors - you must provide these, but if you do not want to specify directions, you can use unset vectors:

start = Rhino.Geometry.Vector3d.Unset
end = Rhino.Geometry.Vector3d.Unset

nurb = Rhino.Geometry.NurbsCurve.CreateInterpolatedCurve(points, tol, 3, start, end)