splat-transform API Reference - v2.0.5
    Preparing search index...

    Function voxelizeToBuffer

    • GPU-accelerated voxelization of Gaussian splat data into a block mask buffer.

      Uses double-buffered pipelining: the CPU prepares the next mega-dispatch (BVH queries + index copying) while the GPU executes the current one.

      Parameters

      • bvh: GaussianBVH

        Gaussian bounding volume hierarchy for spatial queries.

      • gpuVoxelization: GpuVoxelization

        GPU voxelization pipeline with Gaussians already uploaded.

      • gridBounds: Bounds

        Block-aligned grid bounds to voxelize within.

      • voxelResolution: number

        Size of each voxel in world units.

      • opacityCutoff: number

        Opacity threshold for solid voxels.

      Returns Promise<BlockMaskBuffer>

      Block mask buffer containing voxelization results.