/Engine/Source/Runtime/GeometryCore/Public/Implicit/SweepingMeshSDF.h
This code is based on the implementation found athttps://github.com/christopherbatty/SDFGen
template<class TriangleMeshType> class TSweepingMeshSDF
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
Grid of closest triangle indices; only available if bWantClosestTriGrid is set to true. Access viaGetClosestTriGrid()
EComputeModes
ComputeMode
int
ExactBandWidth
Width of the band around triangles for which exact Distances are computed (In fact this is conservative, the band is often larger locally)
FVector3d
ExpandBounds
Bounds of Grid will be expanded this much in positive and negative directions.
FDenseGrid3f
Grid
FVector3f
GridOrigin
EInsideModes
InsideMode
FDenseGrid3i
IntersectionsGrid
Grid of intersection counts; only available if bWantIntersectionsGrid is set to true. Access viaGetIntersectionsGrid()
const TriangleM...
Mesh
double
NarrowBandMaxDistance
How wide of narrow band should we compute.
TMeshAABBTree3<...
Spatial