MrDraw/SkeinPyPy/fabmetheus_utilities/geometry/solids/union.py
daid 77d04ceab8 Removed patches for different skeinforge versions. Only SF48 now.
Updated build script to create win32/linux/macos versions.
Fixed the defaults to they work with PLA.
Fixed the temperature plugin default "ON" problem.
Removed all profiles except for PLA.
2012-02-10 17:20:03 +01:00

39 lines
1.3 KiB
Python

"""
Boolean geometry union of solids.
"""
from __future__ import absolute_import
#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.
import __init__
from fabmetheus_utilities.geometry.geometry_utilities import evaluate
from fabmetheus_utilities.geometry.solids import difference
from fabmetheus_utilities.geometry.solids import group
__author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__credits__ = 'Nophead <http://hydraraptor.blogspot.com/>\nArt of Illusion <http://www.artofillusion.org/>'
__date__ = '$Date: 2008/21/04 $'
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
def convertElementNode(elementNode, geometryOutput):
'Convert the xml element to a union xml element.'
group.convertContainerElementNode(elementNode, geometryOutput, Union())
def getNewDerivation(elementNode):
'Get new derivation.'
return evaluate.EmptyObject(elementNode)
def processElementNode(elementNode):
'Process the xml element.'
evaluate.processArchivable(Union, elementNode)
class Union(difference.Difference):
'A difference object.'
def getLoopsFromObjectLoopsList(self, importRadius, visibleObjectLoopsList):
'Get loops from visible object loops list.'
return self.getUnion(importRadius, visibleObjectLoopsList)