splat-transform API Reference - v1.10.1
    Preparing search index...

    Function marchingCubes

    • Extract a triangle mesh from a BlockAccumulator using marching cubes.

      Each voxel is treated as a cell in the marching cubes grid. Corner values are binary (0 = empty, 1 = occupied) with a 0.5 threshold. Vertices are placed at edge midpoints, producing a mesh that follows voxel boundaries.

      Parameters

      • accumulator: BlockAccumulator

        Voxel block data after filtering

      • gridBounds: Bounds

        Grid bounds aligned to block boundaries

      • voxelResolution: number

        Size of each voxel in world units

      Returns MarchingCubesMesh

      Mesh with positions and indices