Click or drag to resize
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) Version: Rhino 6.0
Syntax
protected Curve SetCurve(
	Curve 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