Model.flanges_detect#
- Model.flanges_detect(comp_collection, max_width, min_width, flange_collection)#
Detects flanges within a minimum/maximum width range from the surfaces contained in the selected components. The flange surfaces are then placed on a collection.
- Parameters:
comp_collection (Collection) – The collection containing the input component entities.
max_width (double) – The maximum width of the flanges to detect.
min_width (double) – The minimum width of the flanges to detect.
flange_collection (Collection) – The collection containing the ouput surface entities defining the detected flanges.
Example#
Find flanges between widths 5 and 20 for all components in the model, and place the surfaces on surface output collection#import hm import hm.entities as ent model = hm.Model() comps = hm.Collection(model, ent.Component) surfs = hm.Collection(model, ent.Surface, populate=False) model.flanges_detect( comp_collection=comps, max_width=20, min_width=5, flange_collection=surfs )