Skip to main content

Module edit

Module edit 

Source
Expand description

Split, trim and extend for lines, arcs, circles and line/arc polylines.

Supported classes (anything else returns GeometryError::UnsupportedOperation):

operationlinearccircleopen polylineclosed polylinepath/polygon/rect/text
splityesyestwo pointsyesyes (opens it)no
trimyesyesyesyesnono
extendyesyesn/aend segmentsn/ano

Enums§

CurveEnd
Which end of an open curve.

Functions§

extend
Extend one end of a line/arc/open polyline to the nearest boundary.
split_at
Split a shape at the point on it closest to at.
split_circle
Split a circle into two arcs at the points closest to a and b.
trim
Trim: remove the piece of target between the cutting intersections that surround pick. Returns the remaining pieces (possibly none).