IFClite TypeScript API
    Preparing search index...

    Function simplifyIndicesByClustering

    • Cluster-simplify indices over interleaved vertex data.

      Parameters

      • vertexData: Float32Array

        interleaved records, strideFloats floats per vertex, position at float offset 0..2 (the batch layout: 7 floats = 28 bytes)

      • strideFloats: number
      • indices: Uint32Array
      • cellSize: number

        world-space grid edge; non-positive returns null

      • Optionallayout: number | LodClusterLayout

        The record layout; a number is the entity-lane offset alone (the older signature).

      Returns Uint32Array<ArrayBufferLike> | null

      the LOD1 index buffer, or null when simplification does not pay (too few source triangles, or the result is not meaningfully smaller)