transformPoints, surfaceTransformPoints: Updated quaternion construction from Euler-angles

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2024
This commit is contained in:
Henry Weller
2016-03-14 16:40:35 +00:00
parent 06fcefebd2
commit 04e8de2cf0
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -256,7 +256,7 @@ int main(int argc, char *argv[])
// Convert to radians
v *= pi/180.0;
quaternion R(v.x(), v.y(), v.z());
quaternion R(quaternion::rotationSequence::XYZ, v);
Info<< "Rotating points by quaternion " << R << endl;
points = transform(R, points);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -149,7 +149,7 @@ int main(int argc, char *argv[])
// Convert to radians
v *= pi/180.0;
quaternion R(v.x(), v.y(), v.z());
quaternion R(quaternion::rotationSequence::XYZ, v);
Info<< "Rotating points by quaternion " << R << endl;
points = transform(R, points);