Number of watchers on Github  118 
Number of open issues  0 
Main language  Go 
Open pull requests  0+ 
Closed pull requests  0+ 
Last commit  almost 4 years ago 
Repo Created  over 4 years ago 
Repo Last Updated  over 2 years ago 
Size  19 KB 
Organization / Author  fogleman 
Contributors  1 
Page Updated  20180312 
Do you use simplify? Leave a review!  
View simplify activity  
View on github  
Book a Mock Interview With Me (Silicon Valley Engineering Leader, 100s of interviews conducted)  
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.

Implementation of Surface Simplification Using Quadric Error Metrics, SIGGRAPH 97, written in Go.
270,000 faces vs. 2,700 faces (1%)
go get u github.com/fogleman/simplify/cmd/simplify
Usage: simplify [f FACTOR] input.stl output.stl
$ simplify f 0.1 bunny.stl out.stl
Loading bunny.stl
Input mesh contains 270021 faces
Simplifying to 10% of original...
Output mesh contains 27001 faces
Writing out.stl
// Use LoadSTL (ASCII) or LoadBinarySTL
mesh, err := simplify.LoadBinarySTL(inputPath)
// handle err
mesh = mesh.Simplify(factor)
mesh.SaveBinarySTL(outputPath)
Iteratively simplifying by 50% until only 16 faces remain