addUnquantizedVertex Method

Add a vertex to the mesh and return its index in positions.

addUnquantizedVertex(position: XYAndZ, uv: XAndY, normal?: Readonly<WritableXYAndZ>): number

@see addQuantizedVertex if your vertex data is already quantized.

@returns the index of the new vertex in positions.

Parameter Type Description
position XYAndZ The 3d position, which will be quantized to the positionRange supplied to the builder's constructor.
uv XAndY The texture coordinates, which will be quantized to the uvRange supplied to the builder's constructor.
normal Readonly<WritableXYAndZ>  

Returns - number

the index of the new vertex in positions.

Defined in

Last Updated: 04 June, 2026