Model.midmesh_inspect_delete_sets#
- Model.midmesh_inspect_delete_sets(mode)#
Deletes sets created in the midmesh inspection module. This must be preceded by a call to
Model.midmesh_inspect_init().- Parameters:
mode (unsigned int) –
1 - Delete all midmesh inspection sets
2 - Delete empty midmesh inspection sets
Example#
Detect and correct nodes off mid , delete empty sets , and shut down the inspection module#import hm import hm.entities as ent model = hm.Model() source_collection = hm.Collection(model, ent.Component, "name=shell") target_collection = hm.Collection(model, ent.Component, "Name=MidmeshEdges OR Name=Mid") model.midmesh_inspect_init( SourceCollection=source_collection, TargetCollection=target_collection, MinNodeOffMidDeviation=0.2, ) node_collection = hm.Collection(model, ent.Node, target_collection) model.midmesh_inspect_fix_problems( entitylist=list(node_collection), ProblemType="NodeOffMid", SmoothClusters=True, SmoothMethod="Auto", ) model.midmesh_inspect_delete_sets(mode=2) model.midmesh_inspect_end()