Model.hm_getsolidsfromsurface#

Model.hm_getsolidsfromsurface(surface)#

Returns the list of solids associated with a specified surface.

Parameters:

surface (Entity) – The object describing any surface entity in the model to return the associated solids.

Returns:

Example#

Get a list of solids associated with surface of ID 1#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getsolidsfromsurface(surface=ent.Surface(model, 1))

print("Associated Solids:", [s.id for s in result.solids])