Model loading · function

findRepeats

The prototype and placements for the largest candidate count that mesh is exactly that many rigid copies of, or null when none is.

Explained in Importing models.

function findRepeats(mesh: MeshData, candidates: readonly number[]): Repeats | null
import { findRepeats } from '@driftengine/assets';

Parameters

ParameterTypeDescription
meshMeshData
candidatesreadonly number[]