Model.savefailedsurfstomark#
- Model.savefailedsurfstomark(surfs_collection)#
Scans all the displayed surfaces, finds those for which all the meshing algorithms failed, and places them on the specified mark. This function is used after one of the functions performing meshing by surfaces.
- Parameters:
surfs_collection (Collection) – The collection containing the surface entities failed to mesh.
Example#
Meshing displayed surfaces and placing the failed surfaces on the surfs_collection#import hm import hm.entities as ent model = hm.Model() # Creating a collection that contains all the displayed surfaces collection_disp_surfaces = hm.CollectionByDisplayed(model, ent.Surface) model.defaultmeshsurf( collection=collection_disp_surfaces, elem_size=20.0, elem_type=2, elem_type_2=2, previous_settings=1, comp_mode=0, size_control=1, skew_control=1, mesh_type=1, min_size=0.0, max_size=0.0, chordal_dev=0.0, max_angle=0.0, ) model.savefailedsurfstomark( surfs_collection=hm.Collection(model, ent.Surface, populate=False) )