Model.hm_getadjfacesfromface#

Model.hm_getadjfacesfromface(face_id)#

Returns the faces adjacent to the specified face.

Parameters:

face_id (int) – The ID of the face to query.

Returns:

Example#

Get the adjacent faces for face ( surface ) with ID 100#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getadjfacesfromface(face_id=100)

print("Adjacent Faces:", [fid for fid in result.adjacentFaceIds])