Skip to main content

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 the vertices array.

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.

PropertyTypeDescriptionFlags
verticessegmentsVertex coordinates. Columns: x, y, z.
indicessegments0-based indices into the vertices. Each pair is a segment. Columns: n0, n1.

Legend

FlagDescription
⬆️Inherited property
Required property

What is the reason for your feedback?