def setToObjectAttributeDictionary( self ): "Set the shape of this carvable object info." self.radius = evaluate.getVector3ByPrefix( 'radius', Vector3( 1.0, 1.0, 1.0 ), self.xmlElement ) self.radius = evaluate.getVector3ThroughSizeDiameter( self.radius, self.xmlElement ) self.xmlElement.attributeDictionary[ 'radiusx' ] = self.radius.x self.xmlElement.attributeDictionary[ 'radiusy' ] = self.radius.y self.xmlElement.attributeDictionary[ 'radiusz' ] = self.radius.z self.createShape()
def setToObjectAttributeDictionary( self ): "Set the shape of this carvable object info." self.half = evaluate.getVector3ByPrefix( 'half', Vector3( 1.0, 1.0, 1.0 ), self.xmlElement ) self.half = evaluate.getVector3ThroughSizeDiameter( self.half, self.xmlElement ) self.xmlElement.attributeDictionary[ 'halfx' ] = self.half.x self.xmlElement.attributeDictionary[ 'halfy' ] = self.half.y self.xmlElement.attributeDictionary[ 'halfz' ] = self.half.z self.createShape()
def setToObjectAttributeDictionary(self): "Set the shape of this carvable object info." self.half = evaluate.getVector3ByPrefix('half', Vector3(1.0, 1.0, 1.0), self.xmlElement) self.half = evaluate.getVector3ThroughSizeDiameter( self.half, self.xmlElement) self.xmlElement.attributeDictionary['halfx'] = self.half.x self.xmlElement.attributeDictionary['halfy'] = self.half.y self.xmlElement.attributeDictionary['halfz'] = self.half.z self.createShape()
def setToObjectAttributeDictionary(self): "Set the shape of this carvable object info." self.radius = evaluate.getVector3ByPrefix('radius', Vector3(1.0, 1.0, 1.0), self.xmlElement) self.radius = evaluate.getVector3ThroughSizeDiameter( self.radius, self.xmlElement) self.xmlElement.attributeDictionary['radiusx'] = self.radius.x self.xmlElement.attributeDictionary['radiusy'] = self.radius.y self.xmlElement.attributeDictionary['radiusz'] = self.radius.z self.createShape()
def setToObjectAttributeDictionary( self ): "Set the shape of this carvable object info." radius = evaluate.getVector3ByPrefix( 'radius', Vector3( 1.0, 1.0, 1.0 ), self.xmlElement ) radius = evaluate.getVector3ThroughSizeDiameter( radius, self.xmlElement ) self.height = evaluate.getEvaluatedFloatDefault( radius.z + radius.z, 'height', self.xmlElement ) self.radiusX = radius.x self.radiusY = radius.y self.radiusZ = None self.topOverBottom = evaluate.getEvaluatedFloatOne( 'topoverbottom', self.xmlElement ) self.xmlElement.attributeDictionary[ 'height' ] = self.height self.xmlElement.attributeDictionary[ 'radiusx' ] = self.radiusX self.xmlElement.attributeDictionary[ 'radiusy' ] = self.radiusY self.xmlElement.attributeDictionary[ 'topoverbottom' ] = self.topOverBottom self.createShape()
def setToObjectAttributeDictionary(self): "Set the shape of this carvable object info." radius = evaluate.getVector3ByPrefix("radius", Vector3(1.0, 1.0, 1.0), self.xmlElement) radius = evaluate.getVector3ThroughSizeDiameter(radius, self.xmlElement) self.height = evaluate.getEvaluatedFloatDefault(radius.z + radius.z, "height", self.xmlElement) self.radiusX = radius.x self.radiusY = radius.y self.radiusZ = None self.topOverBottom = evaluate.getEvaluatedFloatOne("topoverbottom", self.xmlElement) self.xmlElement.attributeDictionary["height"] = self.height self.xmlElement.attributeDictionary["radiusx"] = self.radiusX self.xmlElement.attributeDictionary["radiusy"] = self.radiusY self.xmlElement.attributeDictionary["topoverbottom"] = self.topOverBottom self.createShape()