Repesents the properties of a curve or line segment
Syntax:
Class Segment
Remarks:
The Segment class repesents the properties of a curve or line segment.
Properties:
Name Description
AbsoluteIndex Gets the index of the segment within the curve
Application Gets the application to which the segment belongs
BoundingBox Returns the bounding rectangle around the segment
EndingControlPointAngle Gets or sets the angle of the control point of the ending node (in the document's units)
EndingControlPointLength Gets or sets the length of the control point of the ending node (in the document's units)
EndingControlPointX Gets or sets the ending control point X
EndingControlPointY Gets or sets the ending control point Y
EndNode Gets the end node
Index Gets the index of the segment within its subpath
Length Gets the length of the segment (in the document's units)
Parent Gets the segment collection parent
Selected Gets or sets the selection property of the node controlling the properties of the given segment
StartingControlPointAngle Gets or sets the angle of the control point of the starting node (in the document's units)
StartingControlPointLength Gets or sets the length of the control point of the starting node (in the document's units)
StartingControlPointX Gets or sets the starting control point X
StartingControlPointY Gets or sets the starting control point Y
StartNode Gets the start node
SubPath Gets the subpath to which the segment belongs
SubPathIndex Gets the index of the segment's subpath within the curve
Type Gets or sets the segment type
Methods:
Name Description
AddNodeAt Inserts a node on the segment
BreakApartAt Breaks this segment into two unconnected segments
CreateSelection Selects the curve node which controls the properties of the given segment
FindClosestPoint Finds the point along the segment closest to the specified point
FindParamOffset Finds Parametric Offset
FindParamOffsetAtPoint Finds the Bezier parameter along the segment which corresponds to the specified point
GetAbsoluteOffset Gets Absolute Offset
GetBendPoints Gets bend points
GetBoundingBox Gets the bounding rectangle around the segment
GetCopy Returns a copy of the current segment as a separate curve
GetCurvatureAt Gets the Curve's Curvature at the current segment
GetCurveSpeedAt Gets the Curve's Speed at the current segment
GetEndingControlPointPosition Returns the ending control point position
GetIntersections Finds the intersection point(s) with another segment
GetPeaks Gets Peaks
GetPerpendicularAt Finds the perpendicular line to a point on the segment
GetPerpendicularVectorAt Finds the perpendicular vector to a point on the segment
GetPointAt Gets the point located on the segment
GetPointPositionAt Gets the coordinates of a point located on the curve
GetPolyline Returns curve consisting of line segments approximating the current segment
GetStartingControlPointPosition Returns the starting control point position
GetTangentAt Finds the tangent line to a point on the segment
GetTangentVectorAt Finds the tangent vector to a point on the segment
IsRectOnEdge Returns True if the specifies rectangle intersects the segment
Next Gets the segment following this one
Previous Gets the segment preceding this one
SetEndingControlPointPosition Sets the ending control point position
SetStartingControlPointPosition Sets the starting control point position