ENH: support rotationCentre for surface output formats (#2565)
- as an alternative output transform (supplementary to the regular coordinate system specification - issue #2505) it is now possible to specify the rotation centre directly. Example: formatOptions { vtk { scale 1000; // m -> mm transform { origin (0 0 0); rotationCentre (1 0 0); rotation axisAngle; axis (0 0 1); angle -45; } } } This behaves like the transformPoints and surfaceTransformPoints '-centre' option (formerly '-origin') in that it removes the specified amount from the point locations, applies the rotation and finally adds the specified amount back to the newly rotated point locations. The results of specifying a `rotationCentre` and a non-zero coordinate system `origin` may not be intuitively evident.
Showing
- src/surfMesh/writers/common/surfaceWriter.C 38 additions, 15 deletionssrc/surfMesh/writers/common/surfaceWriter.C
- src/surfMesh/writers/common/surfaceWriter.H 8 additions, 1 deletionsrc/surfMesh/writers/common/surfaceWriter.H
- tutorials/compressible/rhoSimpleFoam/squareBend/system/samplingDebug 15 additions, 0 deletions...ompressible/rhoSimpleFoam/squareBend/system/samplingDebug
Please register or sign in to comment