Model loading · function

componentCount

How many connected pieces the indices make of the mesh. Unreferenced vertices count as their own.

Explained in Importing models.

function componentCount(mesh: MeshData): number
import { componentCount } from '@driftengine/assets';

Parameters

ParameterTypeDescription
meshMeshData