Whether or not to automatically close the path.
The current offset of the path. Any new THREE.Curve | Curve added will start here.
The array of Curves.
An array of paths that define the holes in the shape.
Readonly
typeA Read-only string to check if this
object type.
UUID of this object instance.
Adds an absolutely positioned THREE.EllipseCurve | EllipseCurve to the path.
The radius of the ellipse in the x axis. Expects a Float
The radius of the ellipse in the y axis. Expects a Float
Optional
aClockwise: booleanOptional
aRotation: numberAdds a lineCurve to close the path.
Generates the Frenet Frames
Expects a Integer
Optional
closed: booleanRequires a Curve definition in 3D space Used in geometries like THREE.TubeGeometry | TubeGeometry or THREE.ExtrudeGeometry | ExtrudeGeometry.
Copies another Curve object to this instance.
Adds an THREE.EllipseCurve | EllipseCurve to the path, positioned relative to .currentPoint.
The radius of the ellipse in the x axis. Expects a Float
The radius of the ellipse in the y axis. Expects a Float
Optional
aClockwise: booleanOptional
aRotation: numberCopies the data from the given JSON object to this instance.
Get total Curve arc length.
Returns a vector for a given position on the curve.
A position on the curve. Must be in the range [ 0, 1 ]
. Expects a Float
Optional
optionalTarget: Vector2If specified, the result will be copied into this Vector, otherwise a new Vector will be created. Default new T
.
Returns a unit vector tangent at t
A position on the curve. Must be in the range [ 0, 1 ]
. Expects a Float
Optional
optionalTarget: Vector2If specified, the result will be copied into this Vector, otherwise a new Vector will be created.
If the derived Curve does not implement its tangent derivation, two points a small delta apart will be used to find its gradient which seems to give a reasonable approximation.
Connects a new THREE.SplineCurve | SplineCurve onto the path.
Defines an arbitrary 2d Shape plane using paths with optional holes
Remarks
It can be used with THREE.ExtrudeGeometry | ExtrudeGeometry, THREE.ShapeGeometry | ShapeGeometry, to get points, or to get triangulated faces.
Example
See