|
[Sponsors] |
[surface handling] Using surfaceTransformPoints to rotate a STL file with a fixed point |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 23, 2017, 07:49 |
Using surfaceTransformPoints to rotate a STL file with a fixed point
|
#1 |
Member
Lewis
Join Date: Jun 2016
Posts: 34
Rep Power: 10 |
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 |
|
January 27, 2018, 11:20 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
try to edit STL file using paraview filter transform
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
January 27, 2018, 12:36 |
|
#3 |
Member
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16 |
If I don't miss something
#surfaceTransformPoints -rollPitchYaw "(0 0 90)" should give you the rotation about z-axis. |
|
|
|
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 |