segments
schema/components/segments/1.2.0/segments.schema.json
The segments component defines a set of line segments by pairs of vertex indices.
vertices— An N×3 array of 3D coordinates defining the vertex positions.indices— An M×2 index-array-2 of (start, end) vertex pairs, each defining one segment. Indices are 0-based and reference positions in theverticesarray.
An optional attribute list can be associated with both vertices and indices, allowing per-vertex and per-segment properties.
Used by: line-segments, triangle-mesh.
See also: triangles, quadrilaterals, hexahedrons, tetrahedra (other cell types).
Properties
segments (v1.2.0)
Segments are defined by pairs of indices into the vertices list.
| Property | Type | Description | Flags |
|---|---|---|---|
| vertices | segments | Vertex coordinates. Columns: x, y, z. | ✅ |
| indices | segments | 0-based indices into the vertices. Each pair is a segment. Columns: n0, n1. | ✅ |
Legend
| Flag | Description |
|---|---|
| ⬆️ | Inherited property |
| ✅ | Required property |