Documentation / loaders / StrandCurveSet
Type Alias: StrandCurveSet
StrandCurveSet =
object
Defined in: libs/loaders/src/curves/types.ts:22
One set of strands, decoded into flat typed arrays.
Remarks
Control points are stored contiguously: strand i owns the numVertices[i] points starting at the running sum of the preceding counts.
Properties
name
name:
string
Defined in: libs/loaders/src/curves/types.ts:24
Name used for the generated node and primitive.
positions
positions:
Float32Array
Defined in: libs/loaders/src/curves/types.ts:26
Control point positions, 3 floats per point.
numVertices
numVertices:
Int32Array|Uint32Array
Defined in: libs/loaders/src/curves/types.ts:28
Control point count for each strand.
width
width:
Nullable<Float32Array>
Defined in: libs/loaders/src/curves/types.ts:35
Strand width, or null when the source provides none.
Remarks
Interpreted as a diameter in the same linear unit as positions.
widthPerCurve
widthPerCurve:
boolean
Defined in: libs/loaders/src/curves/types.ts:37
True when width holds one value per strand rather than per point.
uv
uv:
Nullable<Float32Array>
Defined in: libs/loaders/src/curves/types.ts:39
Per-strand or per-point root UV, 2 floats each, or null when absent.
totalPoints
totalPoints:
number
Defined in: libs/loaders/src/curves/types.ts:41
Total control point count, that is the sum of numVertices.