HM_ExtAPI::ElementGetType()

Returns element type.

Syntax

bool ElementGetType(
const HM_EntityMesh & hmesh,
const HM_EntityElement & helem,
HM_ExtAPI::ElementType & etyp
);

Type

HyperMesh Ext API Function

Description

The element referenced by the handle helem must belong to the mesh referenced by the handle hmesh. That is only the element handles obtained in previous calls to API functions using the same mesh handle hmesh must be used.

If the function succeeds, the return value is true. 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 functions.
helem
[in] - Handle to the element.
etyp
[out] - Element type. When function returns, this parameter can have one of following values.
HM_ExtAPI::TRIA - Triangular first-order element
HM_ExtAPI::QUAD - Quadrilateral first-order element
HM_ExtAPI::NONE - Invalid handles used in input or this element type is not supported by current version of API

Errors

None.