Skip to content

Commit

Permalink
fix(ImageCPRMapper): Fix orientations from mat4
Browse files Browse the repository at this point in the history
  • Loading branch information
bruyeret committed Mar 6, 2024
1 parent 2d94482 commit df54205
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/Rendering/Core/ImageCPRMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ function vtkImageCPRMapper(publicAPI, model) {
: orientationDataArray.getNumberOfComponents();
switch (numComps) {
case 16:
convert = mat4.getRotation;
convert = (outQuat, inMat) => {
mat4.getRotation(outQuat, inMat);
quat.normalize(outQuat, outQuat);
};
break;
case 9:
convert = (outQuat, inMat) => {
Expand Down

0 comments on commit df54205

Please sign in to comment.