Model.hm_getsurfacesfromedge#
- Model.hm_getsurfacesfromedge(line)#
Gets all surfaces connected to the specified edge.
- Parameters:
line (Entity) – The object describing the edge (line) entity to find all the connected surfaces.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:surfaces (EntityList) - List of surface entities connected to
line- Entity Type:Surface
Example#
Get surfaces connected to the edge with ID 2#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getsurfacesfromedge(line=ent.Line(model, 2)) print("Surfaces connected to the edge:", [s.id for s in result.surfaces])