Skip to content

About

a mini script for getting the bounding-box of a STL model - 一个计算STL模型包围盒尺寸的脚本程序

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a mini script for getting the bounding-box of a STL model - 一个计算STL模型包围盒尺寸的脚本程序

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages