CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [CAD formats] .stl file scale! (https://www.cfd-online.com/Forums/openfoam-meshing/125485-stl-file-scale.html)

gooya_kabir October 26, 2013 10:34

.stl file scale!
 
Hi friends,

I have a .stl file which when I open it by paraview its scale is 100*100*100. It means that its scale is 100m*100m*100m ? and also can I change it to 1m*1m*1m ? because when I'm using snappy, I just can define a outer box in blockmMesh directory for my .stl file and I could not change the scale of my .stl file.

Many thanks

I found it :) here:
http://www.cfd-online.com/Forums/ope...-mismatch.html

good luck

Alfalfa October 27, 2013 13:51

Just to add, blender has a really nice scaling tool, you simply import the *.stl in blender, press ''s'' and type the scaling factor (there is no window to type in, you just do it). just be really careful to not move the mouse while typing.

lrmason April 17, 2018 05:52

For future reference:

1. Open in STL file in Paraview.
2. Go to Filters > Alphabetical > Transform.
3. Set the Scale values to be 0.01, 0.01, 0.01 (or whatever you need)
4. File > Save Data...
5. Save the transformed STL data as a new STL file.

derekm April 18, 2018 18:27

or use surfaceMeshConvert
example:
Code:

surfaceMeshConvert infile.stl outfile.stl -scaleIn 0.001


All times are GMT -4. The time now is 19:09.