Skip to content

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

Notifications You must be signed in to change notification settings

alexwoo1900/stldetective

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages