Mesh.PolygonCount

Mesh.PolygonCount property

Gets the count of polygons

public int PolygonCount { get; }

Property Value

The polygon count.

Examples

The following code shows how to get the number of mesh’ polygons.

var mesh = (new Sphere()).ToMesh();
Console.WriteLine("Mesh's polygon count = " + mesh.PolygonCount);

See Also