def test_same(self):
nodes_first = np.asfortranarray([
[0.0, 0.0],
[1.0, 1.0],
])
first = subdivided_curve(nodes_first)
nodes_second = np.asfortranarray([
[1.0, 1.0],
[2.0, 1.0],
])
second = subdivided_curve(nodes_second)
s_val = 1.0
node_first = np.asfortranarray(first.nodes[[1], :])
t_val = 0.0
node_second = np.asfortranarray(second.nodes[[0], :])
intersections = []
self._call_function_under_test(
first, node_first, s_val,
second, node_second, t_val, intersections)
self.assertEqual(intersections, [(s_val, t_val)])
评论列表
文章目录