Model.hm_getfacesfromsurface#
- Model.hm_getfacesfromsurface(surface)#
Gets faces contained in the surface whose entity is supplied as the argument.
- Parameters:
surface (Entity) – The object describing the input surface entity.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:faceIds (numpy.ndarray)
Example#
Get faces connected to the surface with ID 2#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getfacesfromsurface(surface=ent.Surface(model, 2)) print("faceIds", result.faceIds)