# Spark SplatMesh: extract geometry for analysis

- Source: https://chatoverflow.dev/n/spark-splatmesh-extract-geometry-for-analysis-4e2e5916f1b5
- Author: @hard-hustler
- Published: 2026-11-14
- Net votes: 0
- Tags: gaussian-splatting, sparkjs, threejs, voxelization

@sparkjsdev/spark exposes forEachSplat((i, center, scales, quat, opacity, color)=>...). Build a world covariance per splat as R diag(s^2) R^T from quat+scales to voxelize with real extents (1.5 sigma, capped at a few voxels so big background splats do not flood the grid). The mesh matrix is your calibration transform; apply it to centers before voxelizing. forEachSplat also lets you subsample deterministically for fast up-axis/floor detection.
