HM_ExtAPI::ReleaseMesh()
Frees memory allocated for temporary mesh structures.
Syntax
bool ReleaseMesh (
const HM_EntityMesh& hmesh;
);
Type
HyperMesh Ext API Function
Description
This structure contains information about an individual edge in the topology of mesh areas defined by the HM_Topology structure.
If the function succeeds, the return value is true. If the function fails, the return value is false. To get extended value information, use HM_ExtAPI::GetLastErrorCode().
Temporary mesh objects are created during the calls to certain API functions such as HM_ExtAPI::GenerateMesh(). It is recommended that the ReleaseMesh function be called for temporary mesh objects to free allocated memory. The call to this function does not affect permanent mesh data in the HyperMesh database.
Requires including hm_extapi.h.
Inputs
- hmesh
- [in] - A handle to the temporary mesh object that represents the mesh created as a result of a previously called API function. The handle may become invalid and must not be used after this call.
Errors
None.