@@ -159,7 +159,7 @@ function transformVectorByTransformation(
159
159
afterMatrix ,
160
160
vector
161
161
) {
162
- const { matrixA, matrixB, identityMatrix , newCenter } = tempObjects ;
162
+ const { matrixA, matrixB, newCenter } = tempObjects ;
163
163
164
164
// The view matrix from vtk.js is row-major, but gl-matrix expects column-major.
165
165
// We need to transpose them before use.
@@ -171,12 +171,8 @@ function transformVectorByTransformation(
171
171
// Compute delta transformation matrix
172
172
mat4 . multiply ( matrixA , matrixB , matrixA ) ;
173
173
174
- // Apply transformation if matrix changed
175
- if ( ! mat4 . equals ( matrixA , identityMatrix ) ) {
176
- vec3 . transformMat4 ( newCenter , vector , matrixA ) ;
177
- return newCenter ;
178
- }
179
- return vector ;
174
+ vec3 . transformMat4 ( newCenter , vector , matrixA ) ;
175
+ return newCenter ;
180
176
}
181
177
182
178
/**
@@ -233,7 +229,6 @@ function vtkInteractorStyleManipulator(publicAPI, model) {
233
229
const tempComputeObjects = {
234
230
matrixA : mat4 . create ( ) ,
235
231
matrixB : mat4 . create ( ) ,
236
- identityMatrix : mat4 . identity ( mat4 . create ( ) ) ,
237
232
newCenter : vec3 . create ( ) ,
238
233
} ;
239
234
0 commit comments