Beispiel #1
0
def face_center_z(face):
    """
    Returns the z coordinate of center point (type Vertex) of a face.
    Note: not the center of gravity, just the average of its vertices.

    Arguments:
    ----------
    face : mola.Face
            The face to be measured
    """
    return utils_vertex.vertices_list_center(face.vertices).z
Beispiel #2
0
 def center(self):
     """
     Returns the center point (type Vertex) of the face.
     Note: not the center of gravity, just the average of its vertices.
     """
     return utils_vertex.vertices_list_center(self.vertices)