Surely, you want to quote the price of that Thing ;) !

STL Volume Weight Calculator

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

Why buy with us ?

  • Get Free Updates forever
  • Accurate calculations
  • So easy to implement, if only grannys knew some PHP…
  • Developers love it – see our ratings/reviews !

What is STL ?

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

class STLStats

STL file format specifies geometry of the 3D object to be printed. STLStats class does the hard work of detecting the format, parsing the data and crunching numbers to give you – volume of the 3D object.

Price Quoting in a Nutshell

From the 3D volume and material density value the class can calculate the weight of the to-be-printed object.

All the 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.

Simply include this class in your PHP project (example demo scripts are provided)

Via AJAX requests, upload your STL file to your server and feed that to STLStats to get 3D volume/weight information beamed to your browser asynchronously.

Multiply the weight by your printing rate ($/gm) to come up with a basic price quote!

Watch that heap of green grow as you quote and fulfil 3D printing jobs ;)

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 along with example snippets of intended usage.

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