Model.hm_getareaofsurface#

Model.hm_getareaofsurface(entity_id)#

Returns the area of a surface.

Parameters:

entity_id (Entity) – The object describing the entity. Only surface entity is valid.

Returns:

Example#

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

model = hm.Model()

_, result = model.hm_getareaofsurface(entity_id=ent.Surface(model, 100))
print("Surface Area:", result.area)