updated for python3 compatibility
parent
40a515ee63
commit
ee5ab1813b
|
@ -6,7 +6,7 @@ easily be generalized to paths containing `Line` and `QuadraticBezier` objects
|
||||||
also.
|
also.
|
||||||
Note: The relevant matrix transformation for quadratics can be found in the
|
Note: The relevant matrix transformation for quadratics can be found in the
|
||||||
svgpathtools.bezier module."""
|
svgpathtools.bezier module."""
|
||||||
|
from __future__ import print_function
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from svgpathtools import *
|
from svgpathtools import *
|
||||||
|
|
||||||
|
@ -53,4 +53,4 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
pts = points_in_each_seg(testpath, tvals)
|
pts = points_in_each_seg(testpath, tvals)
|
||||||
pts_check = points_in_each_seg_slow(testpath, tvals)
|
pts_check = points_in_each_seg_slow(testpath, tvals)
|
||||||
print np.max(pts - pts_check)
|
print(np.max(pts - pts_check))
|
||||||
|
|
Loading…
Reference in New Issue