Class M_Curve

Version added: before 9.5
The M_Curve class represents a curve in a vector layer.

Methods:

Name Returns Description Version added
AimControlHandleAtNeighbor void Added in version 12 12.0
ClosestPointOnSegment LM_Vector2 before 9.5
CorrectControlHandleAngles void Added in version 12 12.0
CountPoints int32 Returns the number of points that make up the curve before 9.5
CountSegments int32 Returns the number of segments on the curve before 9.5
Curvature AnimVal before 9.5
CurveLength real before 9.5
DeselectCurvePoints void Added in version 11 11.0
GetControlHandle LM_Vector2 Added in version 12 12.0
GetControlPoints void Returns the control points for the given segment id before 9.5
GetCurvature real Returns the curvature through a given point on the curve before 9.5
GetOffset real Added in version 12 12.0
GetPercentLocation LM_Vector2 before 9.5
GetPercentTangent LM_Vector2 before 9.5
GetSegmentRange void before 9.5
GetWeight real Added in version 12 12.0
IsPartiallySelected bool before 9.5
IsPointOnSegment bool Returns true if the given point is on the given curve segment before 9.5
IsSegmentOn bool Tests whether a given curve segment is on or not before 9.5
IsSegmentSelected bool Tests whether a segment is selected before 9.5
IsSelected bool before 9.5
Point M_Point Returns one of the points making up the curve (use 0 for the first point on the curve) before 9.5
PointID int32 Added in version 12 12.0
PointOnSegment LM_Vector2 Returns the location of a point on a segment before 9.5
ResetControlHandles void Added in version 12 12.0
SegmentLength real before 9.5
SelectCurvePoints void Added in version 11 11.0
SetControlHandle void Added in version 12 12.0
SetCurvature void Sets the curvature through a given point on the curve before 9.5
SetOffset void Added in version 12 12.0
SetProfileCurve void before 9.5
SetSegmentOn void Turns a curve segment on or off before 9.5
SetWeight void Added in version 12 12.0

Properties:

Name Type Description Version added
fClosed bool true if the curve is closed, otherwise false before 9.5
fEndPercent AnimVal before 9.5
fProfileRepeat int32 before 9.5
fStartPercent AnimVal before 9.5