Struct ModelMesh ​
Namespace: ValveResourceFormat.ResourceTypes.ModelData
Assembly: ValveResourceFormat.dll
One of a model's meshes, embedded in the model itself.
public readonly record struct ModelMesh : IEquatable<ModelMesh>Implements ​
Constructors ​
ModelMesh(Mesh, int, string, long) ​
One of a model's meshes, embedded in the model itself.
public ModelMesh(Mesh Mesh, int MeshIndex, string Name, long LodMask)Parameters ​
Mesh Mesh
The mesh.
MeshIndex int
The mesh's index in the model, addressing its LOD mask table, mesh group masks and bone remap slices. Not the mesh's position among the embedded ones.
Name string
The mesh's authored name.
LodMask long
Bit N set means the mesh is in LOD level N. Zero when the model declares no LOD data.
Properties ​
LodMask ​
Bit N set means the mesh is in LOD level N. Zero when the model declares no LOD data.
public long LodMask { get; init; }Property Value ​
Mesh ​
The mesh.
public Mesh Mesh { get; init; }Property Value ​
MeshIndex ​
The mesh's index in the model, addressing its LOD mask table, mesh group masks and bone remap slices. Not the mesh's position among the embedded ones.
public int MeshIndex { get; init; }Property Value ​
Name ​
The mesh's authored name.
public string Name { get; init; }
