Revision: 2631
Author: m-schindler
Date: 2006-04-27 10:33:56 -0700 (Thu, 27 Apr 2006)
ViewCVS: http://svn.sourceforge.net/pyx/?rev=2631&view=rev
Log Message:
-----------
repair a broken curvature_pt
Modified Paths:
--------------
trunk/pyx/pyx/normpath.py
Modified: trunk/pyx/pyx/normpath.py
===================================================================
--- trunk/pyx/pyx/normpath.py 2006-04-27 17:33:10 UTC (rev 2630)
+++ trunk/pyx/pyx/normpath.py 2006-04-27 17:33:56 UTC (rev 2631)
@@ -64,12 +64,13 @@
"""invalid result marker class
- The followin norm(sub)path(item) methods:
+ The following norm(sub)path(item) methods:
- trafo
- rotation
- tangent_pt
- tangent
- curvature_pt
+ - curvradius_pt
return list of result values, which might contain the invalid instance
defined below to signal points, where the result is undefined due to
properties of the norm(sub)path(item). Accessing invalid leads to an
@@ -1633,7 +1634,11 @@
this radius can be negative or positive, depending on the sign of the
curvature."""
- return self._curveradius_pt(self._convertparams(params, self.arclentoparam_pt))
+ result = [None] * len(params)
+ for normsubpathindex, (indices, params) in self._distributeparams(params).items():
+ for index, curv_pt in zip(indices, self.normsubpaths[normsubpathindex].curvature_pt(params)):
+ result[index] = curv_pt
+ return result
curvature_pt = _valueorlistmethod(curvature_pt)
def _curveradius_pt(self, params):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|