## [FontTools-checkins] CVS: fonttools/Lib/fontTools/misc bezierTools.py,1.12,1.13

 [FontTools-checkins] CVS: fonttools/Lib/fontTools/misc bezierTools.py,1.12,1.13 From: Just van Rossum - 2005-02-25 22:32:01 ```Update of /cvsroot/fonttools/fonttools/Lib/fontTools/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4592 Modified Files: bezierTools.py Log Message: use highly unscientific epsilon value Index: bezierTools.py =================================================================== RCS file: /cvsroot/fonttools/fonttools/Lib/fontTools/misc/bezierTools.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** bezierTools.py 25 Feb 2005 12:51:49 -0000 1.12 --- bezierTools.py 25 Feb 2005 22:31:39 -0000 1.13 *************** *** 17,20 **** --- 17,22 ---- import Numeric + epsilon = 1e-12 + def calcQuadraticBounds(pt1, pt2, pt3): *************** *** 238,243 **** is neither guaranteed to be sorted nor to contain unique values! """ ! if a == 0.0: ! if b == 0.0: # We have a non-equation; therefore, we have no valid solution roots = [] --- 240,245 ---- is neither guaranteed to be sorted nor to contain unique values! """ ! if abs(a) < epsilon: ! if abs(b) < epsilon: # We have a non-equation; therefore, we have no valid solution roots = [] *************** *** 270,274 **** # found at: http://www.strangecreations.com/library/snippets/Cubic.C # ! if abs(a) < 1e-6: # don't just test for zero; for very small values of 'a' solveCubic() # returns unreliable results, so we fall back to quad. --- 272,276 ---- # found at: http://www.strangecreations.com/library/snippets/Cubic.C # ! if abs(a) < epsilon: # don't just test for zero; for very small values of 'a' solveCubic() # returns unreliable results, so we fall back to quad. ```

 [FontTools-checkins] CVS: fonttools/Lib/fontTools/misc bezierTools.py,1.12,1.13 From: Just van Rossum - 2005-02-25 22:32:01 ```Update of /cvsroot/fonttools/fonttools/Lib/fontTools/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4592 Modified Files: bezierTools.py Log Message: use highly unscientific epsilon value Index: bezierTools.py =================================================================== RCS file: /cvsroot/fonttools/fonttools/Lib/fontTools/misc/bezierTools.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** bezierTools.py 25 Feb 2005 12:51:49 -0000 1.12 --- bezierTools.py 25 Feb 2005 22:31:39 -0000 1.13 *************** *** 17,20 **** --- 17,22 ---- import Numeric + epsilon = 1e-12 + def calcQuadraticBounds(pt1, pt2, pt3): *************** *** 238,243 **** is neither guaranteed to be sorted nor to contain unique values! """ ! if a == 0.0: ! if b == 0.0: # We have a non-equation; therefore, we have no valid solution roots = [] --- 240,245 ---- is neither guaranteed to be sorted nor to contain unique values! """ ! if abs(a) < epsilon: ! if abs(b) < epsilon: # We have a non-equation; therefore, we have no valid solution roots = [] *************** *** 270,274 **** # found at: http://www.strangecreations.com/library/snippets/Cubic.C # ! if abs(a) < 1e-6: # don't just test for zero; for very small values of 'a' solveCubic() # returns unreliable results, so we fall back to quad. --- 272,276 ---- # found at: http://www.strangecreations.com/library/snippets/Cubic.C # ! if abs(a) < epsilon: # don't just test for zero; for very small values of 'a' solveCubic() # returns unreliable results, so we fall back to quad. ```

No, thanks