@@ -106,12 +106,8 @@ def __init__(self, str_repr):
106106 [component [0 ], component [1 ], component [2 ], 0 ],
107107 [component [3 ], component [4 ], component [5 ], 0 ],
108108 [component [6 ], component [7 ], component [8 ], 0 ],
109- [component [9 ] * 0.001 , component [10 ] * 0.001 , component [11 ] * 0.001 , 0 ],
109+ [component [9 ], component [10 ], component [11 ], 0 ],
110110 ]
111- # TODO: the matrix down-scaling should not be done here but in the consumer, based on scaling settings and so on
112- # same below, where we up-scale it again as mere re-processing via pymvr will cause loss of precision
113- # another option is to have a global settings for the GeneralSceneDescription but we then must pass the GSD class
114- # down through the hierarchy all the way to the Matrix class
115111
116112 def __eq__ (self , other ):
117113 return self .matrix == other .matrix
@@ -127,7 +123,7 @@ def __repr__(self):
127123
128124 def to_xml (self , parent ):
129125 u , v , w , x = self .matrix
130- matrix_str = f"{{{ u [0 ]} ,{ u [1 ]} ,{ u [2 ]} }}{{{ v [0 ]} ,{ v [1 ]} ,{ v [2 ]} }}{{{ w [0 ]} ,{ w [1 ]} ,{ w [2 ]} }}{{{ x [0 ] / 0.001 } ,{ x [1 ] / 0.001 } ,{ x [2 ] / 0.001 } }}"
126+ matrix_str = f"{{{ u [0 ]} ,{ u [1 ]} ,{ u [2 ]} }}{{{ v [0 ]} ,{ v [1 ]} ,{ v [2 ]} }}{{{ w [0 ]} ,{ w [1 ]} ,{ w [2 ]} }}{{{ x [0 ]} ,{ x [1 ]} ,{ x [2 ]} }}"
131127 matrix = ElementTree .SubElement (parent , type (self ).__name__ )
132128 matrix .text = matrix_str
133129
0 commit comments