|
[Sponsors] |
How to rotate a STL file with a fixed point by using surfaceTransformPoints |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 23, 2017, 05:11 |
How to rotate a STL file with a fixed point by using surfaceTransformPoints
|
#1 |
Member
Lewis
Join Date: Jun 2016
Posts: 34
Rep Power: 10 |
Currently, I build up a horizontal cylinder with the STL file as shown in the attached figure. The cylinder is placed in the XY plane and perpendicular to X- axis. Then, I try to rotate the cylinder to a position (90 degree) which is same as the red line with its central point A. I have tried to type these codes from some online tutorial about the surfaceTransformPoints command:
Code:
export FILE="cylinder_v2.stl" #surfaceTransformPoints -yawPitchRoll "(0 90 0)" cylinder.stl $FILE #surfaceTransformPoints -rollPitchYaw "(0 90 0)" cylinder.stl $FILE #surfaceTransformPoints -rotate '( (1 0 0) (0 0 1) )' cylinder.stl $FILE #surfaceTransformPoints -scale '(1 1 -1)' cylinder.stl $FILE Thanks in advance! Zuodong |
|
January 4, 2018, 12:37 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
Eg '-scale 0.001' instead of -scale '(0.001 0.001 0.001)' for less typing and fewer mistakes. |
||
January 7, 2018, 02:24 |
|
#3 | |
Member
Lewis
Join Date: Jun 2016
Posts: 34
Rep Power: 10 |
Quote:
Cheers! Zuodong |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |