We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 846ae44 commit 6b8f59eCopy full SHA for 6b8f59e
1 file changed
tests/test_simplify.py
@@ -14,6 +14,9 @@ def test_ramer_douglas_peucker():
14
S, J, Q = ramer_douglas_peucker(points, threshold=0.5)
15
assert len(S) <= len(points)
16
assert len(S) >= 2 # At least start and end points
17
+ # Q maps each original point to simplified curve - same length as input
18
+ assert len(Q) == len(points)
19
+ assert len(Q[0]) == 3 # Each Q entry is a 3D point
20
# With zero threshold, should keep all points
21
S2, J2, Q2 = ramer_douglas_peucker(points, threshold=0.0)
22
assert len(S2) == len(points)
0 commit comments