Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.01 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.01 KB

README: ENGLISH | 简体中文

What is STLDetective used for

It's a mini script for calculating the bounding box of a STL model. The output is width/depth/height of the bounding box.

What is bounding box

Like the following image showed:

bounding-box-sample

If this picture involved copyright issues, please contact me.

How to use it

If you want to use the code, the following demo will be helpful.

detective = STLDetective()
detective.load_file(stlFullPath)
detective.getModelBBox() # print 20.2 50.0 100.5

Or you can modify the return of function getModelBBox to be compatible with your own program.

If you want the tool can be executed by other processors, after compiling this script, you can call it in command line

STLDetective.exe cat.stl