def getManipulatedGeometryOutput(geometryOutput, prefix, xmlElement): """Get bottomed geometryOutput.""" derivation = BottomDerivation(prefix, xmlElement) copyShallow = xmlElement.getCopyShallow() solid.processXMLElementByGeometry(geometryOutput, copyShallow) targetMatrix = matrix.getBranchMatrixSetXMLElement(xmlElement) matrix.setXMLElementDictionaryMatrix(targetMatrix, copyShallow) minimumZ = boolean_geometry.getMinimumZ(copyShallow.xmlObject) copyShallow.parent.xmlObject.archivableObjects.remove(copyShallow.xmlObject) lift = derivation.altitude - minimumZ vertexes = matrix.getVertexes(geometryOutput) for vertex in vertexes: vertex.z += lift return geometryOutput
def getManipulatedGeometryOutput(geometryOutput, prefix, xmlElement): 'Get bottomed geometryOutput.' derivation = BottomDerivation(prefix, xmlElement) copyShallow = xmlElement.getCopyShallow() solid.processXMLElementByGeometry(geometryOutput, copyShallow) targetMatrix = matrix.getBranchMatrixSetXMLElement(xmlElement) matrix.setXMLElementDictionaryMatrix(targetMatrix, copyShallow) minimumZ = boolean_geometry.getMinimumZ(copyShallow.xmlObject) copyShallow.parent.xmlObject.archivableObjects.remove( copyShallow.xmlObject) lift = derivation.altitude - minimumZ vertexes = matrix.getVertexes(geometryOutput) for vertex in vertexes: vertex.z += lift return geometryOutput
def processXMLElement(xmlElement): 'Process the xml element.' solid.processXMLElementByGeometry(getGeometryOutput(None, xmlElement), xmlElement)
def processXMLElement(xmlElement): 'Process the xml element.' solid.processXMLElementByGeometry(getGeometryOutput(None, xmlElement), xmlElement)
def processXMLElement(xmlElement): """Process the xml element.""" solid.processXMLElementByGeometry(getGeometryOutput(xmlElement), xmlElement)