/Engine/Source/Runtime/GeometryCore/Public/Implicit/CachingMeshSDF.h
This code is based on the implementation found athttps://github.com/christopherbatty/SDFGen
template<class TriangleMeshType> class TCachingMeshSDF
int
ApproxMaxCellsPerDimension
If the number of cells in any dimension may exceed this, CellSize will be automatically increased to keep cell count reasonable.
bool
bComputeSigns
Should we try to compute signs? if not, Grid remains unsigned
bool
bUseParallel
Most of this parallelizes very well, makes a huge speed difference.
bool
bWantClosestTriGrid
Implementation computes the triangle closest to each Grid cell, can return this Grid if desired (only reason not to is avoid hanging onto memory)
bool
bWantIntersectionsGrid
Grid of per-cell crossing or parity counts.
TFunction< bool...
CancelF
If this function returns true, we should abort calculation
float
CellSize
FDenseGrid3i
ClosestTriGrid
FVector3d
ExpandBounds
Bounds of Grid will be expanded this much in positive and negative directions.
FDenseGrid3f
Grid
FVector3f
GridOrigin
EInsideModes
InsideMode
FDenseGrid3i
IntersectionsGrid
double
MaxDistQueryDist
float
MaxOffsetDistance
Max distance away from surface that we might need to evaluate
const TriangleM...
Mesh
constTMeshAABB...
Spatial
float
UpperBoundDistance