HM_ExtAPI::GenerateMesh()
Generates a mesh on surfaces of the model loaded into the HyperMesh database, using mesh areas and constraint edges and points.
Syntax
bool GenerateMesh (
HM_Topology& mesh_area_topo,
HM_EntityMesh& hmesh,
HM_GenerateMeshParamStruct* mesh_params,
int options
);
Type
HyperMesh Ext API
Description
This structure contains information about an individual edge in the topology of mesh areas defined by the 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().
To query detailed properties of the generated mesh use the mesh interrogation functions of the API. The returned value of the handle hmesh can be used in calls to the mesh interrogation functions.
To free memory allocated by the temporary mesh object, use the HM_ExtAPI::ReleaseMesh() function. The mesh handle becomes invalid after this call and must not be used.
Requires including hm_extapi.h.
Inputs
- mesh_area_topo
- [in/out] - Reference to an HM_Topology structure that contains information about mesh area topology that includes a set of faces, edges and vertices and topological relations between them.
- hmesh
- [out] - A handle to the temporary mesh object that represents the mesh created as a result of the call to this function. The handle may be NULL or invalid in case the function fails.
- mesh_params
- [in] - Pointer to an HM_GenerateMeshParamStruct structure that contains additional parameters used for meshing and intermediate output. If the pointer is set to NULL then default parameters are used.
- options
- [in] - A set of bit flags that can be used to specify additional options to control the flow of the algorithm.
Errors
None.