From f02ffb492499807fc4534145b3866b571cf03e34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Sun, 29 Aug 2004 13:45:13 +0000 Subject: [PATCH] global epsilon (default precision of normsubpaths) git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@1830 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/path.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyx/path.py b/pyx/path.py index ae63b900..ddd2d721 100755 --- a/pyx/path.py +++ b/pyx/path.py @@ -56,6 +56,15 @@ except NameError: __metaclass__ = type ################################################################################ + +# global epsilon (default precision of normsubpaths) +_epsilon = 1e-5 + +def set(epsilon=None): + if epsilon is not None: + _epsilon = epsilon + +################################################################################ # Bezier helper functions ################################################################################ @@ -2526,3 +2535,4 @@ class normpath(path): def outputPDF(self, file): for sp in self.subpaths: sp.outputPDF(file) + -- 2.11.4.GIT