Model.hm_getadjsurfacesfromsurface#

Model.hm_getadjsurfacesfromsurface(surface)#

Returns the surfaces adjacent to the specified surface.

Parameters:

surface (Entity) – The object describing the surface entity to query.

Returns:

Example#

Get the adjacent surfaces for surface with ID 100#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getadjsurfacesfromsurface(surface=ent.Surface(model, 100))

print("Adjacent Surfaces:", [s.id for s in result.adjacentSurfaces])