HM_ExtAPI::ComponentGetElementCount()

Returns the total number of elements in a mesh component object.

Syntax

bool ComponentGetElementCount(
const HM_EntityMesh& hmesh,
const HM_EntityMeshComponent& hcomp,
int& elem_count
);

Type

HyperMesh Ext API

Description

Returns the total number of elements in a mesh component object.

If the function fails, the return value is false. To get extended value information, call HM_ExtAPI::GetLastErrorCode().

Requires including hm_extapi.h.

Inputs

hmesh
[in] - Handle to mesh object that was returned by previous calls to API funcitons.
hcomp
[in] - Handle to mesh component object that was returned by previous calls to API functions for the mesh object referenced by hmesh.
elem_count
[out] - Total number of elements in the component referenced by the mesh and component objects.

Errors

None.

Version History

11.0.101