Model.hm_getfacesfromedge#

Model.hm_getfacesfromedge(line)#

Gets all faces connected to the edge whose ID is supplied as the argument.

Parameters:

line (Entity) – The object describing the line entity to find the faces connected to it.

Returns:

Example#

Get faces connected to the edge with ID 2#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getfacesfromedge(line=ent.Line(model, 2))

print("faceIds", result.faceIds)