()
| 128 | |
| 129 | |
| 130 | def test_edge_params(): |
| 131 | |
| 132 | e = spline([(0, 0), (1, 0), (1, 1), (2, 0), (2, -1)], periodic=True) |
| 133 | N = 5 |
| 134 | |
| 135 | pts_orig = e.sample(N)[0] |
| 136 | pts = [pt + Vector(0, 0, 1e-1) for pt in pts_orig] |
| 137 | |
| 138 | ps = e.params(pts) |
| 139 | |
| 140 | for i in range(N): |
| 141 | assert (e.positionAt(ps[i], mode="parameter") - pts_orig[i]).Length == approx(0) |
| 142 | |
| 143 | |
| 144 | def test_edge_tangents(): |
nothing calls this directly
no test coverage detected