no message
This commit is contained in:
parent
519a8db48f
commit
82fa7efd18
@ -1,15 +1,10 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# We will use the inkex module with the predefined Effect base class.
|
|
||||||
import inkex
|
import inkex
|
||||||
import measure
|
import measure
|
||||||
import re
|
|
||||||
from inkex.paths import Path
|
from inkex.paths import Path
|
||||||
from inkex import paths
|
from inkex import paths
|
||||||
|
|
||||||
# The simplestyle module provides functions for style parsing.
|
|
||||||
from simplestyle import *
|
|
||||||
|
|
||||||
def getArea(path):
|
def getArea(path):
|
||||||
return abs(measure.csparea(paths.CubicSuperPath(path + "z")))
|
return abs(measure.csparea(paths.CubicSuperPath(path + "z")))
|
||||||
|
|
||||||
@ -43,5 +38,4 @@ class LaserSort(inkex.Effect):
|
|||||||
newpathstring = "z ".join(sections) + nonClosedSection
|
newpathstring = "z ".join(sections) + nonClosedSection
|
||||||
el.set('d', newpathstring)
|
el.set('d', newpathstring)
|
||||||
|
|
||||||
# Create effect instance and apply it.
|
|
||||||
LaserSort().run()
|
LaserSort().run()
|
Reference in New Issue
Block a user