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:

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])