Model.hm_getsurfacefromface#
- Model.hm_getsurfacefromface(faceID)#
Gets the surface containing the face whose ID is supplied as the argument.
- Parameters:
faceID (unsigned int) – The face’s ID.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:surface (Entity) - The surface containing the face with input ID value - Entity Type:
Surface
Example#
Get surface contain the face with ID 2#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getsurfacefromface(faceID=2) print("Surface:", result.surface.id)