TriangleMesh.triangleCount Property

Parent Object: TriangleMesh
Defined in namespace "adsk::fusion" and the header file is <Fusion/MeshData/TriangleMesh.h>

Description

Returns the number of triangles in the mesh.

Syntax

"triangleMesh_var" is a variable referencing a TriangleMesh object.

# Get the value of the property.
propertyValue = triangleMesh_var.triangleCount
"triangleMesh_var" is a variable referencing a TriangleMesh object.
#include <Fusion/MeshData/TriangleMesh.h>

// Get the value of the property.
integer propertyValue = triangleMesh_var->triangleCount();

Property Value

This is a read only property whose value is an integer.

Version

Introduced in version August 2014