def getCarvingFromParser(xmlParser): "Get the carving for the parser." booleanGeometryElement = xmlParser.getDocumentElement() booleanGeometryElement.xmlObject = boolean_geometry.BooleanGeometry() booleanGeometryElement.xmlProcessor = XMLBooleanGeometryProcessor() booleanGeometryElement.xmlProcessor.processChildNodes(booleanGeometryElement) return booleanGeometryElement.xmlObject
def getCarvingFromParser(xmlParser): "Get the carving for the parser." booleanGeometryElement = xmlParser.getRoot() booleanGeometryElement.object = boolean_geometry.BooleanGeometry() root = xmlParser.getRoot() root.xmlProcessor = XMLBooleanGeometryProcessor() root.xmlProcessor.processChildren(booleanGeometryElement) return booleanGeometryElement.object
def getCarvingFromParser( xmlParser ): "Get the carving for the parser." booleanGeometry = boolean_geometry.BooleanGeometry() artOfIllusionElement = xmlParser.getRoot() artOfIllusionElement.xmlObject = booleanGeometry euclidean.removeElementsFromDictionary( artOfIllusionElement.attributeDictionary, ['fileversion', 'xmlns:bf'] ) sceneElement = artOfIllusionElement.getFirstChildByLocalName('Scene') xmlElements = sceneElement.getFirstChildByLocalName('objects').getChildNodesByLocalName('bf:Elem') for xmlElement in xmlElements: processXMLElement( booleanGeometry.archivableObjects, artOfIllusionElement, xmlElement ) return booleanGeometry
def getCarvingFromParser( xmlParser ): "Get the carving for the parser." booleanGeometry = boolean_geometry.BooleanGeometry() artOfIllusionElement = xmlParser.getDocumentElement() artOfIllusionElement.xmlObject = booleanGeometry euclidean.removeElementsFromDictionary( artOfIllusionElement.attributes, ['fileversion', 'xmlns:bf'] ) sceneElement = artOfIllusionElement.getFirstChildByLocalName('Scene') elementNodes = sceneElement.getFirstChildByLocalName('objects').getChildElementsByLocalName('bf:Elem') for elementNode in elementNodes: processAppendElementNode(booleanGeometry.archivableObjects, elementNode, artOfIllusionElement) return booleanGeometry