get_face_center#
- Modeler3D.get_face_center(assignment: int) list#
Retrieve the center position for a given planar face ID.
- Parameters:
- assignment
int ID of the face.
- assignment
- Returns:
ListA list of
[x, y, z]coordinates for the planar face center position.
References
>>> oEditor.GetFaceCenter
Examples
>>> from ansys.aedt.core import Hfss >>> app = Hfss() >>> app.modeler.get_face_center(assignment="Box1")