STL Volume Weight Calculator

In two lines:
Vital stats for 3D printing objects. Quickly estimate the cost of printing your 3D object!

What is STL ?

.STL is a file format that is popularly used for representing 3D object information for 3D printing applications.

class STLStats

It is useful to know the volume and hence the weight of the material that may go into making an object on a 3D printer before one prints it. This may aid calculating the cost of printing that particular object.

The volume counting math is wrapped inside this easy to use PHP class. It exposes getter functions (i.e. getVolume, getWeight, etc) to calculate common statistics of a 3D object.

The PHP code has been commented extensively. Example usage has been given at the end of the class (please comment it out during production use :P ). Documentation is also provided.

Happy coding !

You might also like B-)

  • Updates:
  • v1.2
  • Minor re-factoring.
  • Updates:
  • v1.1
  • Auto-detect ASCII / Binary STL file
  • Extract ASCII & Binary data
  • Calculate volume from ASCII & Binary STL files
by
by
by
by
by
by