Model.marksmoothsolids#
- Model.marksmoothsolids(collection, iterations)#
Applies a simple smoothing algorithm to reposition the interior floating nodes in a mesh of solid elements, attempting to moderate variations in element size and quality.
- Parameters:
collection (Collection) – The collection containing the solid element entities.
iterations (int) – The number of times to apply the algorithm.
Example#
Smooth some elements with IDs 7 , 8 , 9 , 11 , 12 , 13 , 17 and 54 for 10 iterations#import hm import hm.entities as ent model = hm.Model() Elements = hm.Collection(model, ent.Element, [7, 8, 9, 11, 12, 13, 17, 54]) model.marksmoothsolids(collection=Elements, iterations=10)