Model.getunmeshedsurfstomark2#
- Model.getunmeshedsurfstomark2(collection)#
Places displayed, unmeshed surfaces on the specified mark. This takes the surfaces found using
Model.hm_getunmeshedsurfstomark()and performs advanced processing to better detect unmeshed surfaces.BatchMesher can move nodes off of surfaces or surface edges, thus causing small surfaces to be considered unmeshed by
Model.getunmeshedsurfstomark(). This function also does advanced filtering to find nodes/elements close to these small surfaces and thus not detect them as unmeshed.- Parameters:
collection (Collection) – The collection containing the unmeshed surface entities on output of
Model.hm_getunmeshedsurfstomark().
Example#
Find all unmeshed surfaces from the output of` Model.hm_getunmeshedsurfstomark`#import hm import hm.entities as ent model = hm.Model() """ Supposing we are having a model with surface entities, after we have found the unmeshed surface entities with model.hm_getunmeshedsurfstomark(), we use this collection to find with a more advanced method the unmeshed surfaces, using the model.getunmeshedsurfstomark2(). """ surface_collection = hm.Collection(model, ent.Surface) out_unmeshed_surf = hm.Collection(model, ent.Surface, populate=False) # From all surfaces find the unmeshed ones model.hm_getunmeshedsurfstomark( inputSurfCollection=hm.Collection(model, ent.Surface), outputSurfCollection=out_unmeshed_surf, ) # Finding unmeshed surfaces from the unmeshed ones of previous function, # using more advanced logic model.getunmeshedsurfstomark2(collection=out_unmeshed_surf)