Solid._getPointIndex()

July 1, 2026 ยท View on GitHub

Internal helper that returns the authored vertex index for a point, adding the point to the vertex buffer if it is not already present.

Usage

const index = solid._getPointIndex([1, 2, 3]);

Signature

solid._getPointIndex(point)

Parameters

  • point ([number, number, number]) - Finite point coordinates.

Returns

number - Authored vertex index.

Errors

Throws when the point is not an array with at least three finite coordinates.

This is part of the low-level triangle authoring pipeline behind addTriangle().