Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/GenericOctree.h |
| Include | #include "Math/GenericOctree.h" |
Syntax
class FOctreeNodeContext
Remarks
The context of an octree node, derived from the traversal of the tree.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FBoxCenterAndExtent | Bounds | The bounds of the node. | |
| FReal | ChildCenterOffset | The offset of the childrens' centers from the center of this node. | |
| FReal | ChildExtent | The extent of the node's children. | |
| uint32 | InCullBits | Bits used for culling, semantics left up to the caller (except that it is always set to zero at the root). | |
| uint32 | OutCullBits | Bits used for culling, semantics left up to the caller (except that it is always set to zero at the root). |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. | |||
FOctreeNodeContext
(
const FBoxCenterAndExtent& InBounds |
Initialization constructor. | ||
FOctreeNodeContext
(
uint32 InInCullBits, |
Initialization constructor, this one is used when we done care about the box anymore | ||
FOctreeNodeContext
(
const FBoxCenterAndExtent& InBounds, |
Initialization constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FOctreeNodeContext | GetChildContext
(
FOctreeChildNodeRef ChildRef |
Child node initialization constructor. | |
| void | GetChildContext
(
FOctreeChildNodeRef ChildRef, |
Construct a child context given the child ref. Optimized to remove all LHS. | |
| FOctreeNodeContext | GetChildContext
(
FOctreeChildNodeRef ChildRef, |
Child node initialization constructor. | |
| VectorRegister | GetChildOffsetVec
(
int i |
||
| FOctreeChildNodeRef | GetContainingChild
(
const FBoxCenterAndExtent& BoundingBox |
Determines which of the octree node's children contain the whole bounding box, if any. | |
| FOctreeChildNodeSubset | GetIntersectingChildren
(
const FBoxCenterAndExtent& BoundingBox |
Determines which of the octree node's children intersect with a bounding box. |
Typedefs
| Name | Description |
|---|---|
| FReal |
Constants
| Name | Description |
|---|---|
| LoosenessDenominator | The node bounds are expanded by their extent divided by LoosenessDenominator. |