Color of the shape, by default set to white (0xffffff).
new THREE.Color()
Readonly
currentThe current Path that is being generated.
null
Array of Path'ss.
[]
Readonly
typeA Read-only string to check if this
object type.
Sub-classes will update this value.
ShapePath
This creates a bezier curve from the currentPath's offset to x and y with cp1X, cp1Y and cp2X, cp2Y as control points and updates the currentPath's offset to x and y.
This creates a line from the currentPath's offset to X and Y and updates the offset to X and Y.
Expects a Float
Expects a Float
Starts a new Path and calls Path.moveTo( x, y ) on that Path
Expects a Float
Expects a Float
Also points currentPath to that Path.
This creates a quadratic curve from the currentPath's offset to x and y with cpX and cpY as control point and updates the currentPath's offset to x and y.
Connects a new SplineCurve onto the currentPath.
Converts the subPaths array into an array of Shapes
Changes how solids and holes are generated
By default solid shapes are defined clockwise (CW) and holes are defined counterclockwise (CCW) If isCCW is set to true, then those are flipped.
This class is used to convert a series of shapes to an array of Path's, for example an SVG shape to a path.
See