Activate by default path simplification.

This commit is contained in:
Andrey Antukh 2016-08-13 02:42:20 +03:00
parent e701793e44
commit 9e904e4247
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
2 changed files with 9 additions and 5 deletions

View file

@ -8,6 +8,8 @@
(:require [uxbox.util.geom.path-impl-simplify :as impl-simplify]))
(defn simplify
[points]
(let [points (into-array points)]
(into [] (impl-simplify/simplify points 10 true))))
([points]
(simplify points 0.1))
([points tolerance]
(let [points (into-array points)]
(into [] (impl-simplify/simplify points tolerance true)))))