Determinant Calculation missing in vtkExtractTensorComponents
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Although the API is in place for determinant calculation in vtkExtractTensorComponents the implementation is missing.
At line 158 of vtkExtractTensorComponents.cxx I added the following code to compute the determinant. This should work even for non-symmetric matrices.
s = tensor[0]*tensor[4]*tensor[8]- tensor[0]*tensor[5]*tensor[7]- tensor[1]*tensor[3]*tensor[8]+ tensor[1]*tensor[5]*tensor[6]+ tensor[2]*tensor[3]*tensor[7]- tensor[2]*tensor[4]*tensor[6];