Shape
A simple interface for managing a List of ShapeContour.
Properties
Lists all ShapeContours with a closed topology.
Returns true if Shape contains no ShapeContours.
Returns true if Shape consists solely of ShapeContours, where each Segment2D is a line segment.
Lists all ShapeContours with an open topology.
The outline of the shape.
Indicates the Shape topology.
Functions
Applies a boolean difference operation between two Shapes.
The indexed hole of the shape.
Applies a boolean intersection operation between two Shapes.
Calculates a List of all points where the Shape and a ShapeContour intersect.
true if this Shape crosses or touches itself anywhere: either one of its ShapeContours is self-intersecting on its own (ShapeContour.isSelfIntersecting), or two distinct contours cross or touch each other.
Applies a map to the shape. Maps every contour.
Projects a point on the contours of a Shape
Writes this shape to file such that Shape.Companion.loadBitExact reproduces it exactly, down to the bit pattern of every coordinate.
Splits an org.openrndr.shape.compound shape into separate shapes.