Esempio n. 1
0
 def test_intersect_05(self):
     s = Edge(R3(0.0, 0.0, 1.0), R3(1.0, 0.0, -1.0))
     a = R3(1.0, 1.0, 0.0)
     n = R3(0.0, 0.0, 1.0)
     assert s.intersect_edge_with_normal(a, n).approx(Segment(0.5, 1.0))
Esempio n. 2
0
 def test_intersect_03(self):
     s = Edge(R3(0.0, 0.0, 0.0), R3(1.0, 0.0, 0.0))
     a = R3(0.0, 0.0, 0.0)
     n = R3(0.0, 0.0, 1.0)
     assert s.intersect_edge_with_normal(a, n).is_degenerate()