![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MeshWindingNumberGrid.h>
Public Types | |
| enum | EComputeModes { FullGrid = 0 , NarrowBand = 1 } |
Public Member Functions | |
| TMeshWindingNumberGrid (const TriangleMeshType *Mesh, TFastWindingTree< TriangleMeshType > *FastWinding, double CellSize) | |
| void | Compute () |
| FVector3i | Dimensions () const |
| constexpr const float & | At (int I, int J, int K) const |
| float | GetValue (const FVector3i &IJK) const |
| FVector3f | CellCenter (int I, int J, int K) |
Public Attributes | |
| const TriangleMeshType * | Mesh |
| TFastWindingTree< TriangleMeshType > * | FastWinding |
| double | CellSize |
| int | BufferCells = 1 |
| EComputeModes | ComputeMode = EComputeModes::NarrowBand |
| float | WindingIsoValue = 0.5f |
| bool | bWantMeshSDFGrid = true |
| TFunction< bool()> | CancelF = [](){ return false; } |
| FVector3f | GridOrigin |
| FDenseGrid3f | WindingGrid |
| TSweepingMeshSDF< TriangleMeshType > | MeshSDF |
Sample mesh winding number (MWN) on a discrete grid. Can sample full grid, or compute MWN values along a specific iso-contour and then fill in rest of grid with correctly-signed values via fast sweeping (this is the default)
TODO:
| enum UE::Geometry::TMeshWindingNumberGrid::EComputeModes |
|
inline |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
| int UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::BufferCells = 1 |
| bool UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::bWantMeshSDFGrid = true |
| TFunction<bool()> UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::CancelF = [](){ return false; } |
if this function returns true, we should abort calculation
| double UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::CellSize |
| EComputeModes UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::ComputeMode = EComputeModes::NarrowBand |
| TFastWindingTree<TriangleMeshType>* UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::FastWinding |
| FVector3f UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::GridOrigin |
| const TriangleMeshType* UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::Mesh |
| TSweepingMeshSDF<TriangleMeshType> UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::MeshSDF |
| FDenseGrid3f UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::WindingGrid |
| float UE::Geometry::TMeshWindingNumberGrid< TriangleMeshType >::WindingIsoValue = 0.5f |