int IndCount{ get }


The number of indices stored in this Mesh! This is available to you regardless of whether or not KeepData is set.


Counting the Vertices and Triangles in a Model

Model.Visuals are always guaranteed to have a Mesh, so no need to null check there, and VertCount and IndCount are available even if Mesh.KeepData is false!

int vertCount = 0;
int triCount  = 0;

foreach (ModelNode node in model.Visuals)
	Mesh mesh = node.Mesh;
	vertCount += mesh.VertCount;
	triCount  += mesh.IndCount / 3;
Log.Info($"Model stats: {vertCount} vertices, {triCount} triangles");

Found an issue with these docs, or have some additional questions? Create an Issue on Github!