Model.fill_circular_holes#
- Model.fill_circular_holes(collection, radius_limit)#
This function is used to fill flat circular holes on 2D elements.
- Parameters:
collection (Collection) – The collection containing the node entities on the holes to be filled.
radius_limit (double) – The radius limit for holes to be filled. If set to a positive value, then all circular flat holes with radius less than this limit are filled. In this case,
collectioncan be set to 0 and is ignored. Otherwise, all flat holes containing nodes marked are filled.
Examples#
Fill the hole containing node with ID 7989#import hm import hm.entities as ent model = hm.Model() model.fill_circular_holes( collection=hm.Collection(model,ent.Node, [7989]), radius_limit=-1.0 )
Fill the holes with a radius less than 5.0#import hm import hm.entities as ent model = hm.Model() model.fill_circular_holes( collection=hm.Collection(model,ent.Node), radius_limit=5.0 )