def setToArtOfIllusionDictionary(self): "Set the shape of this carvable object info." self.inradius = Vector3() self.inradius.x = float(self.elementNode.attributes['rx']) self.inradius.y = float(self.elementNode.attributes['rz']) self.inradius.z = float(self.elementNode.attributes['height']) self.topOverBottom = float(self.elementNode.attributes['ratio']) self.elementNode.attributes['radius.x'] = self.elementNode.attributes['rx'] self.elementNode.attributes['radius.y'] = self.elementNode.attributes['rz'] self.elementNode.attributes['topOverBottom'] = self.elementNode.attributes['ratio'] xmlObject = self.elementNode.xmlObject xmlObject.matrix4X4 = xmlObject.matrix4X4.getOtherTimesSelf(matrix.getDiagonalSwitchedTetragrid(90.0, [0, 2])) removeListArtOfIllusionFromDictionary(self.elementNode.attributes, ['rx', 'rz', 'ratio']) self.createShape()
def setToArtOfIllusionDictionary(self): "Set the shape of this carvable object info." self.inradius = Vector3() self.inradius.x = float(self.xmlElement.attributeDictionary['rx']) self.inradius.y = float(self.xmlElement.attributeDictionary['rz']) self.inradius.z = float(self.xmlElement.attributeDictionary['height']) self.topOverBottom = float(self.xmlElement.attributeDictionary['ratio']) self.xmlElement.attributeDictionary['radius.x'] = self.xmlElement.attributeDictionary['rx'] self.xmlElement.attributeDictionary['radius.y'] = self.xmlElement.attributeDictionary['rz'] self.xmlElement.attributeDictionary['topOverBottom'] = self.xmlElement.attributeDictionary['ratio'] xmlObject = self.xmlElement.xmlObject xmlObject.matrix4X4 = xmlObject.matrix4X4.getOtherTimesSelf(matrix.getDiagonalSwitchedTetragrid(90.0, [0, 2])) removeListArtOfIllusionFromDictionary(self.xmlElement.attributeDictionary, ['rx', 'rz', 'ratio']) self.createShape()