Model.automesh#
- Model.automesh(face_index, algorithm, elem_type)#
Employs a surface-based automeshing algorithm to generate a mesh on a given surface face.
- Parameters:
face_index (unsigned int) – The index of the surface face to mesh.
algorithm (int) –
Determines the surface-based mesh generation algorithm to use to create elements for the given face. Valid values are:
1 - Auto decide
2 - Map as rectangle
3 - Map as triangle
4 - Map as pentagon
5 - Advancing front
6 - Map as circle
elem_type (int) –
Flag indicating the elements generated for mapped meshing algorithms. Valid values are:
0 - trias
1 - quads
2 - mixed
3 - right trias
4 - quads only
Example#
Automeshe face with ID 0 with mixed elements use advance front algorithm#import hm import hm.entities as ent model = hm.Model() model.automesh(face_index=0, algorithm=5, elem_type=2)