ContourEdge
Helper for querying and adjusting ShapeContour.
An edge embodies exactly the same thing as a Segment2D
All edge operations are immutable and will create a new ContourEdge pointing to a copied and updated ShapeContour
Since
0.4.4
Parameters
the contour to be adjusted
the index the contour's segment to be adjusted
a list of SegmentOperation that have been applied to reach to contour, this is used to inform ShapeContour of changes in the contour topology.
Constructors
Properties
The Tunni-line for this ContourEdge
The Tunni-point for this ContourEdge
Functions
Moves the first control point of a contour edge by a specified translation vector.
Moves the second control point (Control1) of a contour edge by a specified translation vector.
Moves the end point of the contour edge by the specified translation vector.
Creates a new contour edge by applying a translation to the current edge.
Replace this edge with a point at t
Replaces the current edge with the segments of an open shape contour.
Split the edge at t
Split the edge in parts parts of equal length
Moves the starting point of the contour edge by the given translation vector.
Convert the edge to a cubic edge
Convert the edge to a linear edge, truncating control points if those exist
apply transform to the edge
provide a copy without the list of adjustments