Struct Mesh ​
Namespace: ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes
Assembly: ValveResourceFormat.dll
Represents a mesh shape.
csharp
public readonly struct MeshConstructors ​
Mesh(KVObject) ​
Initializes a new instance of the struct.
csharp
public Mesh(KVObject data)Parameters ​
data KVObject
Properties ​
Data ​
Gets the raw data.
csharp
public KVObject Data { get; }Property Value ​
Materials ​
Per triangle index to surface properties. Can be empty if the whole mesh has the same material.
csharp
public int[] Materials { get; }Property Value ​
int[]
Max ​
Gets the maximum bounds.
csharp
public Vector3 Max { get; }Property Value ​
Min ​
Gets the minimum bounds.
csharp
public Vector3 Min { get; }Property Value ​
OrthographicAreas ​
Fraction 0..1 of coverage along YZ,ZX,XY sides of AABB
csharp
public Vector3 OrthographicAreas { get; }Property Value ​
Methods ​
GetTriangles() ​
The mesh triangles with additional topology information similar to the half-edge data structure.
csharp
public ReadOnlySpan<Mesh.Triangle> GetTriangles()Returns ​
GetVertices() ​
The mesh vertices in the space of the parent shape.
csharp
public ReadOnlySpan<Vector3> GetVertices()Returns ​
ParseNodes() ​
The nodes of the loose kd-tree to accelerate ray casts and volume queries against this mesh.
csharp
public ReadOnlySpan<Mesh.Node> ParseNodes()
