2 Add material to support overhang or remove material at the overhang angle.
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.vector3 import Vector3
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 = -200
24 def getManipulatedPaths(close, elementNode, loop, prefix, sideLength):
26 derivation = WedgeDerivation(elementNode, prefix)
27 loop.append(derivation.center)
30 def getNewDerivation(elementNode, prefix, sideLength):
32 return WedgeDerivation(elementNode, prefix)
34 def processElementNode(elementNode):
35 "Process the xml element."
36 lineation.processElementNodeByFunction(elementNode, getManipulatedPaths)
39 class WedgeDerivation:
40 "Class to hold wedge variables."
41 def __init__(self, elementNode, prefix):
43 self.center = evaluate.getVector3ByPrefix(Vector3(), elementNode, prefix + 'center')