CustomCurveObjectSetCurve Method |
Only for developers who are defining custom subclasses of CurveObject.
Directly sets the internal curve geometry for this object. Note that
this function does not work with Rhino's "undo".
Namespace:
Rhino.DocObjects.Custom
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntax protected Curve SetCurve(
Curve curve
)
Protected Function SetCurve (
curve As Curve
) As Curve
Parameters
- curve
- Type: Rhino.GeometryCurve
[Missing <param name="curve"/> documentation for "M:Rhino.DocObjects.Custom.CustomCurveObject.SetCurve(Rhino.Geometry.Curve)"]
Return Value
Type:
Curve
The old curve geometry that was set for this object
Remarks
Note that this function does not work with Rhino's "undo". The typical
approach for adjusting the curve geometry is to modify the object that you
get when you call the CurveGeometry property and then call CommitChanges.
See Also