def getScaleMatrixTetragrid(prefix, xmlElement):
 scaleDefaultVector3 = Vector3(1.0, 1.0, 1.0)
 scale = getCumulativeVector3Remove(prefix, scaleDefaultVector3.copy(), xmlElement)
 if (scale == scaleDefaultVector3):
  return None
 return [[scale.x, 0.0, 0.0, 0.0], [0.0, scale.y, 0.0, 0.0], [0.0, 0.0, scale.z, 0.0], [0.0, 0.0, 0.0, 1.0]]

def getScaleMatrixTetragrid ( prefix , xmlElement ) : scaleDefaultVector3 = Vector3 ( 1.0 , 1.0 , 1.0 ) scale = getCumulativeVector3Remove ( prefix , scaleDefaultVector3 . copy ( ) , xmlElement ) if ( scale == scaleDefaultVector3 ) : return None return [ [ scale . x , 0.0 , 0.0 , 0.0 ] , [ 0.0 , scale . y , 0.0 , 0.0 ] , [ 0.0 , 0.0 , scale . z , 0.0 ] , [ 0.0 , 0.0 , 0.0 , 1.0 ] ]
get scale matrix and delete the scale attributes .