Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TSweepingMeshSDF
Description
Encodes heuristic for deciding whether it will be faster to use
- NarrowBand_SpatialFloodFill
- Or NarrowBandOnly The heuristic is to use the Spatial method unless you have relatively long edges relative to the width of the narrow band. For a 1-cell wide band, or one where few triangles interact w/ each cell in the band the spatial overhead will probably not be worthwhile. TODO: test and tune this ...
| Name | ShouldUseSpatial |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Implicit/SweepingMeshSDF.h |
| Include Path | #include "Implicit/SweepingMeshSDF.h" |
static bool ShouldUseSpatial
(
int ExactCells,
double CellSize,
double AvgEdgeLen
)