Skip to main content

ModelPolylineLinetype

Dashed-line descriptor attached to a polyline style when the polyline references a non-CONTINUOUS linetype. Absent (undefined) for solid polylines.

Rendering of dashed lines is not implemented in @twinfinity/core as of this release; consumers building their own renderers can use this field.

Index

Properties

readonlydashPattern

dashPattern: Float32Array<ArrayBufferLike>

Signed dash lengths in drawing units (not millimeters; apply model_units_to_millimeters_factor when mm are required): positive = ink, negative = gap, zero = dot. This is a zero-copy subarray view into the underlying T8LDData.linetypes.dashes buffer — do not mutate.

readonlypatternLength

patternLength: number

Precomputed ∑|dashes| per-cycle length in drawing units (not millimeters; apply model_units_to_millimeters_factor when mm are required).

readonlyscale

scale: number

Per-polyline CELTSCALE × LTSCALE multiplier applied to dashPattern at render time.

Page Options