Skip to content

Interface: LineLayout ​

Experimental

Result of buildLineLayout.

Properties ​

PropertyTypeDescription
headnumberExperimental First stream vertex (0 unless built with an offset). Streaming (E7.2) slides the live range inside the arrays instead of moving data, so GPU uploads stay proportional to the change.
instanceCountnumberExperimental Number of segment instances to draw (max(0, vertexCount - 3)).
originVec3Experimental Float64 RTC origin subtracted from positions.
pointsFloat32ArrayExperimental Stream positions: [x - ox, y - oy, z - oz, valid] per vertex, valid for [head, head + vertexCount). Length ≥ 4 * (head + vertexCount).
sourceInt32ArrayExperimental Source serial of each stream vertex, or -1 for a sentinel: the input index plus sourceBase. Valid for [head, head + vertexCount); the length is the capacity.
sourceBasenumberExperimental Added to input indices to form source serials (0 for a plain build). Streaming edits renumber the inputs without rewriting retained vertices by changing the base instead.
vertexCountnumberExperimental Number of stream vertices, including sentinels.

Released under the MIT License.