def test_shadow_03(self): s = Edge(R3(0.0, 0.0, -1.0), R3(1.0, 1.0, -1.0)) f = Facet([ R3(0.0, 0.0, 0.0), R3(2.0, 0.0, 0.0), R3(2.0, 2.0, 0.0), R3(0.0, 2.0, 0.0) ]) s.shadow(f) assert len(s.gaps) == 0
def test_shadow_02(self): s = Edge(R3(0.0, 0.0, 1.0), R3(1.0, 1.0, 1.0)) f = Facet([ R3(0.0, 0.0, 0.0), R3(2.0, 0.0, 0.0), R3(2.0, 2.0, 0.0), R3(0.0, 2.0, 0.0) ]) s.shadow(f) assert s.gaps[0].approx(Segment(0.0, 1.0))