CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[CAD formats] .stl file scale!

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 2 Post By Alfalfa
  • 3 Post By lrmason
  • 3 Post By derekm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2013, 10:34
Cool .stl file scale!
  #1
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14
gooya_kabir is on a distinguished road
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

Last edited by gooya_kabir; October 27, 2013 at 10:35.
gooya_kabir is offline   Reply With Quote

Old   October 27, 2013, 13:51
Default
  #2
New Member
 
Gabriel Boucher
Join Date: Jul 2013
Posts: 23
Rep Power: 12
Alfalfa is on a distinguished road
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.
tonyuprm and gooya_kabir like this.
Alfalfa is offline   Reply With Quote

Old   April 17, 2018, 05:52
Default
  #3
New Member
 
Lachlan
Join Date: May 2017
Posts: 1
Rep Power: 0
lrmason is on a distinguished road
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.
lrmason is offline   Reply With Quote

Old   April 18, 2018, 18:27
Default
  #4
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
or use surfaceMeshConvert
example:
Code:
surfaceMeshConvert infile.stl outfile.stl -scaleIn 0.001
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Reply

Tags
stl snappy


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18


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