Struct RegionBoxVoxelVisibility.Node ​
Namespace: ValveResourceFormat.Blocks
Assembly: ValveResourceFormat.dll
Represents an octree node.
csharp
public readonly struct RegionBoxVoxelVisibility.NodeConstructors ​
Node(uint, ushort) ​
Represents an octree node.
csharp
public Node(uint packed, ushort regionCount)Parameters ​
packed uint
Packed first word: leaf flag and offset.
regionCount ushort
Number of regions in this leaf.
Properties ​
IsLeaf ​
Gets whether this node is a leaf.
csharp
public bool IsLeaf { get; }Property Value ​
Offset ​
Gets the first child for internal nodes, or the first region for leaf nodes.
csharp
public uint Offset { get; }Property Value ​
RegionCount ​
Gets the number of regions in this leaf.
csharp
public ushort RegionCount { get; }
