Struct Mesh.Node
- Assembly
- ValveResourceFormat.dll
Represents a node in the mesh BVH.
public readonly struct Mesh.NodeInherited Members
Constructors
Node(KVObject)
Initializes a new instance of the ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes.Mesh.Node struct.
public Node(KVObject data)Parameters
dataKVObject
Fields
Max
The maximum bounds.
public readonly Vector3 MaxField Value
Min
The minimum bounds.
public readonly Vector3 MinField Value
TriangleOffset
If leaf node this is the offset into the associated triangle array
public readonly uint TriangleOffsetField 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; }