FScanSplatField
Gaussian splats grown from the accumulated scan (§29 A6). Each chunk of the persistent cloud is binned into cells; a cell with enough points becomes one splat fitted to them: mean position, covariance from the points' spread (eigen-decomposed into oriented axes), opacity from how often the surface was hit. A chunk refits only when its points changed, so the field grows as the player keeps scanning and costs nothing while they do not.
- Module
- Game
- Header
#include "PointCloud/ScanSplatField.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
void | Configure | |
const FScanSplatSettings& | GetSettings | |
uint32_t | Update | Refits up to maxChunks chunks whose points changed since their last fit (and drops chunks the accumulator no longer holds). |
const std::vector<FGaussianSplat>& | GetSplats | Every splat, chunks in sector order. |
uint64_t | Version | |
uint32_t | ChunkCount | |
void | Clear | |
bool | FitCell | The fit itself: one splat from a cell's points. |
void | SymmetricEigen | Symmetric 3x3 eigen-decomposition (cyclic Jacobi): eigenvalues descending, eigenvectors as rows of outVectors. |
Function details
Configure
void Configure(const FScanSplatSettings& settings)GetSettings
const FScanSplatSettings& GetSettings() constUpdate
uint32_t Update(const FPointCloudAccumulator& accumulator, uint32_t maxChunks = 8)Refits up to maxChunks chunks whose points changed since their last fit (and drops chunks the accumulator no longer holds). Returns how many chunks were refit.
GetSplats
const std::vector<FGaussianSplat>& GetSplats()Every splat, chunks in sector order. Rebuilt lazily after an Update changed something; Version() moves exactly then.
Version
uint64_t Version() constChunkCount
uint32_t ChunkCount() constClear
void Clear()FitCell
static bool FitCell(const Vec3* points, uint32_t count, const FScanSplatSettings& settings, FGaussianSplat& out)The fit itself: one splat from a cell's points. False when there are too few. Public for the fitting row.
SymmetricEigen
static void SymmetricEigen(const double m[3][3], double outValues[3], double outVectors[3][3])Symmetric 3x3 eigen-decomposition (cyclic Jacobi): eigenvalues descending, eigenvectors as rows of outVectors.