CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Native Meshers: snappyHexMesh and Others (
-   -   Moving/rotating STL/OBJ inside SnappyHexMesh (

palgroth May 16, 2013 03:20

Moving/rotating STL/OBJ inside SnappyHexMesh

I would like to know if it is possible to transform an imported STL/OBJ geometry within sHM with respect to position and angle?

Best regards Pål

colinB May 16, 2013 04:09

Dear På,

since sHM is only a meshing tool this is not possible.

However if you do the transformation in advance of the meshing process
it can easily be done via the command line.

The command you are looking for is called:


For the correct usage type

surfaceTransformPoints -help

Also the user guide in section 3 - utilities gives you further hints.
I know for sure that you can manipulate stl files but as far as I remember
it is also capable of treating .obj files.
This command can be used with the correct options for translating, scaling
rotating and many other surface transformations.

I hope I could contribute

palgroth May 16, 2013 04:40

This is exactly what I need, thank you very much!! It works perfectly

All times are GMT -4. The time now is 01:07.