From f9c81e9ed39cad4616a0c809f1424a7e92e51c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Thu, 16 Aug 2012 23:06:40 +0200 Subject: [PATCH] Update subdivision example with preserve_ends parameter --- doc/examples/plot_polygon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/plot_polygon.py b/doc/examples/plot_polygon.py index 1240ff39..6eaef0bf 100644 --- a/doc/examples/plot_polygon.py +++ b/doc/examples/plot_polygon.py @@ -40,7 +40,7 @@ hand = np.array([[1.64516129, 1.16145833], # subdivide polygon using 2nd degree B-Splines new_hand = hand.copy() for _ in range(5): - new_hand = subdivide_polygon(new_hand, degree=2) + new_hand = subdivide_polygon(new_hand, degree=2, preserve_ends=True) # approximate subdivided polygon with Douglas-Peucker algorithm appr_hand = approximate_polygon(new_hand, tolerance=0.02)