Struct Mesh.Node
- Assembly
- ValveResourceFormat.dll
Represents a node in the mesh BVH.
public readonly struct Mesh.Node
Inherited Members
Constructors
Node(KVObject)
Initializes a new instance of the ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes.Mesh.Node struct.
public Node(KVObject data)
Parameters
data
KVObject
Fields
Max
The maximum bounds.
public readonly Vector3 Max
Field Value
Min
The minimum bounds.
public readonly Vector3 Min
Field Value
TriangleOffset
If leaf node this is the offset into the associated triangle array
public readonly uint TriangleOffset
Field Value
Properties
ChildOffset
The 2nd child offset, otherwise when ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes.Mesh.Node.Type is ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes.Mesh.NodeType.Leaf, this is the triangle count.
public uint ChildOffset { get; }
Property Value
Type
The node type/split axis.
public Mesh.NodeType Type { get; }