Model.hm_getsolidboundsforsurfaces#
- Model.hm_getsolidboundsforsurfaces(surfaces, exclude_solids=1, find_baffles=0)#
Returns a list of bounding surfaces. It can be one list for each set of bounding surfaces found, or nothing if there is not a valid closed bounds found.
- Parameters:
surfaces (Collection) – The collection containing the input surface entities.
exclude_solids (int) – A flag that indicates whether to consider surfaces that already bound solids. Default is
exclude_solids=1if not specified, meaning that algorithm not considers surfaces that already bound solids.find_baffles (int) – A flag that indicates whether to consider baffle/fin surfaces. Default is
find_baffles=0if not specified, meaning that algorithm is not considering baffle surfaces.
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:boundingSurfaces (EntityList) - Entity Type:
Surface
Example#
Find the solid bounds for surface with ID 100#import hm import hm.entities as ent model = hm.Model() surface_collection = hm.Collection(model, ent.Surface, [100]) _, resultlist = model.hm_getsolidboundsforsurfaces(surfaces=surface_collection) for result in resultlist: print("Bound Surfaces:", [s.id for s in result.boundingSurfaces])