Ejemplo n.º 1
0
def test_does_not_detect_wrong_order():
    assert is_planar_face(REGULAR_FACE_WRONG_ORDER) is True
Ejemplo n.º 2
0
def test_irregular_face():
    assert is_planar_face(IRREGULAR_FACE) is False
Ejemplo n.º 3
0
def test_face_count():
    assert is_planar_face(REGULAR_FACE[:3]) is True
    assert is_planar_face(REGULAR_FACE[:2]) is False
Ejemplo n.º 4
0
def test_regular_face():
    assert is_planar_face(REGULAR_FACE) is True
Ejemplo n.º 5
0
 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())