View Issue Details

IDProjectCategoryView StatusLast Update
0002024OpenFOAMBugpublic2016-03-14 16:41
Reporterfeymark Assigned Tohenry  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntuOS Version15.04
Product Versiondev 
Summary0002024: Error on compile surfaceTransformPoints and transformPoints
DescriptionThe commit

https://github.com/OpenFOAM/OpenFOAM-dev/commit/dbe5d5288b6dcd28f5ea23a79ff87521ad05b76b

introduces a bug in surfaceTransformPoints and transformPoints.

Solution:
--- a/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C
+++ b/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C
@@ -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);

--- a/applications/utilities/surface/surfaceTransformPoints/surfaceTransformPoints.C
+++ b/applications/utilities/surface/surfaceTransformPoints/surfaceTransformPoints.C
@@ -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);
TagsNo tags attached.

Activities

henry

2016-03-14 16:41

manager   ~0006036

Resolved by commit 04e8de2cf0b17fdbefe1ce14df5be3b3d9721feb

Issue History

Date Modified Username Field Change
2016-03-14 16:06 feymark New Issue
2016-03-14 16:41 henry Note Added: 0006036
2016-03-14 16:41 henry Status new => resolved
2016-03-14 16:41 henry Resolution open => fixed
2016-03-14 16:41 henry Assigned To => henry