Navigation
API > API/Runtime > API/Runtime/GeometryCore
Fast Mesh Winding Number extension to a TMeshAABBTree3. This class is an "add-on" to the AABBTree, that can compute the Fast Mesh Winding Number. This calculation requires a precomputation pass where information is cached at each tree node.
| Name | TFastWindingTree |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexDecomposition3.h |
| Include Path | #include "CompGeom/ConvexDecomposition3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Public/Spatial/MeshAABBTree3.h |
Syntax
template<class TriangleMeshType>
class TFastWindingTree
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TFastWindingTree
(
TMeshAABBTree3< TriangleMeshType >* TreeToRef, |
Spatial/FastWinding.h |
Structs
| Name | Remarks |
|---|---|
| FWNInfo |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FWNApproxOrder | int | FWN approximation order. Must be 1 or 2. 2 is more accurate, obviously. | Spatial/FastWinding.h | |
| FWNBeta | double | FWN beta parameter - is 2.0 in paper | Spatial/FastWinding.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FastWindingCache | TMap< int, FWNInfo > | Spatial/FastWinding.h | ||
| FastWindingCacheMeshChangeStamp | uint64 | Spatial/FastWinding.h | ||
| Tree | TMeshAABBTree3< TriangleMeshType > * | Spatial/FastWinding.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Build
(
bool bForceRebuild |
Spatial/FastWinding.h | ||
double FastWindingNumber
(
const FVector3d& P |
Fast approximation of winding number using far-field approximations. | Spatial/FastWinding.h | |
double FastWindingNumber
(
const FVector3d& P |
Const version does not auto-build on query | Spatial/FastWinding.h | |
TMeshAABBTree3< TriangleMeshType > * GetTree() |
Spatial/FastWinding.h | ||
bool IsBuilt() |
Spatial/FastWinding.h | ||
bool IsInside
(
const FVector3d& P, |
Spatial/FastWinding.h | ||
void SetTree
(
TMeshAABBTree3< TriangleMeshType >* TreeToRef, |
Spatial/FastWinding.h |