Struct Mesh.Node ​
Namespace: ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes
Assembly: ValveResourceFormat.dll
Represents a node in the mesh BVH.
csharp
public readonly struct Mesh.NodeConstructors ​
Node(KVObject) ​
Initializes a new instance of the struct.
csharp
public Node(KVObject data)Parameters ​
data KVObject
Node(Vector3, Vector3, NodeType, uint, uint) ​
Creates a custom BVH node.
csharp
public Node(Vector3 min, Vector3 max, Mesh.NodeType type, uint childOffset, uint triangleOffset)Parameters ​
min Vector3
max Vector3
childOffset uint
triangleOffset uint
Fields ​
Max ​
The maximum bounds.
csharp
public readonly Vector3 MaxField Value ​
Min ​
The minimum bounds.
csharp
public readonly Vector3 MinField Value ​
TriangleOffset ​
If leaf node this is the offset into the associated triangle array
csharp
public readonly uint TriangleOffsetField Value ​
Properties ​
ChildOffset ​
The 2nd child offset, otherwise when is , this is the triangle count.
csharp
public uint ChildOffset { get; }Property Value ​
Type ​
The node type/split axis.
csharp
public Mesh.NodeType Type { get; }
