|
[Sponsors] | |||||
[surface handling] Using surfaceTransformPoints to rotate a STL file with a fixed point |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Lewis
Join Date: Jun 2016
Posts: 34
Rep Power: 11 ![]() |
Hello everyone!
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 Thanks in advance! Zuodong |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,269
Blog Entries: 1
Rep Power: 26 ![]() |
try to edit STL file using paraview filter transform
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
|
|
|
|
|
|
|
#3 |
|
Member
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 17 ![]() |
If I don't miss something
#surfaceTransformPoints -rollPitchYaw "(0 0 90)" should give you the rotation about z-axis. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |
| polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
| [Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
| Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
| DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |