6 from __future__ import absolute_import
7 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
10 from fabmetheus_utilities.geometry.creation import lineation
11 from fabmetheus_utilities.geometry.geometry_utilities import evaluate
12 from fabmetheus_utilities import euclidean
15 __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
16 __credits__ = 'Art of Illusion <http://www.artofillusion.org/>'
17 __date__ = '$Date: 2008/02/05 $'
18 __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
21 globalExecutionOrder = 80
24 def getManipulatedPaths(close, elementNode, loop, prefix, sideLength):
25 "Get path with overhangs removed or filled in."
28 loopComplex = euclidean.getComplexPath(loop)
29 return euclidean.getVector3Paths([euclidean.getLoopConvex(loopComplex)], loop[0].z)
31 def getNewDerivation(elementNode, prefix, sideLength):
33 return evaluate.EmptyObject()
35 def processElementNode(elementNode):
36 "Process the xml element."
37 lineation.processElementNodeByFunction(elementNode, getManipulatedPaths)