Commit 04e8de2c authored by Henry Weller's avatar Henry Weller
Browse files

transformPoints, surfaceTransformPoints: Updated quaternion construction from Euler-angles

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2024
parent 06fcefeb
......@@ -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);
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment