Readonly
typeA Read-only string to check if this
object type.
UUID of this object instance.
An array of paths that define the holes in the shape.
The current offset of the path. Any new THREE.Curve | Curve added will start here.
The array of Curves.
Whether or not to automatically close the path.
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 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: numberConnects a new THREE.SplineCurve | SplineCurve onto the path.
Adds a lineCurve to close the path.
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
.
Get total Curve arc length.
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.
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.
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