Table of Contents

Struct Mesh.Node

Namespace
ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes
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

Vector3

Min

The minimum bounds.

public readonly Vector3 Min

Field Value

Vector3

TriangleOffset

If leaf node this is the offset into the associated triangle array

public readonly uint TriangleOffset

Field Value

uint

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

uint

Type

The node type/split axis.

public Mesh.NodeType Type { get; }

Property Value

Mesh.NodeType