It's a mini script for calculating the bounding box of a STL model. The output is width/depth/height of the bounding box.
Like the following image showed:
If this picture involved copyright issues, please contact me.
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