Skip to content

Documentation / loaders / buildStrandModel

Function: buildStrandModel() ​

buildStrandModel(curves, model, opt): void

Defined in: libs/loaders/src/curves/strandmodel.ts:27

Tessellates strand sets and fills a model with the result.

Parameters ​

curves ​

StrandCurveSet[]

Decoded strand sets, one node each.

model ​

SharedModel

Model to fill; its active scene is set on return.

opt ​

ResolvedStrandRibbonOptions

Resolved tessellation options.

Returns ​

void

Remarks ​

Strand sets that lose every strand to filtering are skipped rather than emitted as empty nodes, so an aggressive strandStride thins the model out instead of leaving degenerate primitives behind.

Released under the MIT License.