|
[Sponsors] |
[surface handling] Command line tool for finding the bounding box of an STL file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 26, 2008, 12:20 |
Command line tool for finding the bounding box of an STL file
|
#1 |
Member
Terry Barnaby
Join Date: Mar 2009
Location: Beam Ltd, UK
Posts: 44
Rep Power: 17 |
Hi does any one know of a command line tool in OpenFOAM or elsewhere that can print out the bounding box of an STL file's objects ?
I need to scale and offset an STL file that is input from a web based interface prior to creating a mesh with snappyHexMesh. Cheers Terry |
|
November 26, 2008, 13:08 |
I can not provide you with a c
|
#2 |
New Member
mediode
Join Date: Mar 2009
Posts: 27
Rep Power: 17 |
I can not provide you with a command line tool, but such a task should easily be managable with vtk, www.vtk.org. It provides all you need.
m* |
|
November 26, 2008, 14:11 |
If the STL is ascii, do it you
|
#3 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
If the STL is ascii, do it yourself! STL format is really trivial...
|
|
November 26, 2008, 14:27 |
Hi,
you can use admesh tool
|
#4 |
Member
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 17 |
Hi,
you can use admesh tool to find out the bounding box of an STL file's object. It's a nice opensource code that you can download from the web. It is also really useful for a lot of other things like holes corrections, face normal reversing... I think it's worth trying.. let me know :-)! Regards Norman |
|
November 26, 2008, 15:36 |
Load it with paraview and chec
|
#5 |
New Member
Juan Fernando Duque Lombana.
Join Date: Mar 2009
Posts: 14
Rep Power: 17 |
Load it with paraview and check the statics.
It tells you the bounding box dimensions and the offset respect to the wcs! |
|
November 26, 2008, 16:47 |
Thanks for all the replies.
T
|
#6 |
Member
Terry Barnaby
Join Date: Mar 2009
Location: Beam Ltd, UK
Posts: 44
Rep Power: 17 |
Thanks for all the replies.
The admesh utility seems to do the job for me as I need a non-interactive solution for a web based interface and I have binary STL files. However I may need to move to using ASCII files as I was going to try using the new snappyHexMesh tool and the binary STL files generated by Blender do not work with it correctly. |
|
November 27, 2008, 03:20 |
You could also use the surface
|
#7 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
You could also use the surfaceCheck utility and parse its output?
It provides not only bounding box info, but also list how many different solid groups there are. |
|
August 7, 2016, 23:09 |
bounding box
|
#8 |
New Member
Fidel Vallejo
Join Date: Dec 2015
Location: Santiago
Posts: 7
Rep Power: 10 |
checkMesh | grep -i 'bounding box'
|
|
November 4, 2016, 14:09 |
Bounding Box
|
#9 |
New Member
Amir
Join Date: Oct 2016
Posts: 4
Rep Power: 10 |
type: surfaceCheck yourFigure.vtk | grep -i 'bounding box'
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |