Model.hm_getsurfaceedges#
- Model.hm_getsurfaceedges(surface)#
Get a list of edges associated with a specified surface.
- Parameters:
surface (Entity) – The object describing the surface entity for which edges are returned. Lists of surface edges are grouped by surface loops.
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:edgeLoop (EntityList) - List of surface edges belonging to one loop of the surface - Entity Type:
Line
Example#
Get the surface edges from surface with ID 13#import hm import hm.entities as ent model = hm.Model() _, resultlist = model.hm_getsurfaceedges(surface=ent.Surface(model, 13)) for loop in resultlist: print("Edges in the loop:", [edge.id for edge in loop.edgeLoop])