def test_does_not_detect_wrong_order(): assert is_planar_face(REGULAR_FACE_WRONG_ORDER) is True
def test_irregular_face(): assert is_planar_face(IRREGULAR_FACE) is False
def test_face_count(): assert is_planar_face(REGULAR_FACE[:3]) is True assert is_planar_face(REGULAR_FACE[:2]) is False
def test_regular_face(): assert is_planar_face(REGULAR_FACE) is True
def has_none_planar_faces(self) -> bool: """Returns ``True`` if any face is none planar.""" return not all( is_planar_face(face) for face in self.faces_as_vertices())