- Home
- Internet Scripts
- PHP language scripts
- 3D Printing Calculations API Clients
3D Printing Calculations API Clients
By : pushkarparanjpe Published on Monday, April 04, 2016,05:58:40 in PHP language scripts
Note: Please “Remove Frame” in Live Preview mode.
What
Calculate the volume, area, bounding box and facet count of a 3D mesh in one go! All the complicated math is encapsulated and exposed as these super easy to use RESTful API calls.How
Extensive documentation is provided. A comprehensive README file is included to get you started right away. Sample 3D mesh files (STL binary and ASCII) are also included for your convenience. Making 3D calculations has never been this easy. Grab this mega product now and monetize your 3D printer! Client side implementations are provided in four popular languages:Why
I already have all your 3D calculators as PHP code. Whats the big deal about this product ? Glad you asked

Example
Here’s how to use this web service via cURL:- HTTP POST
curl -X POST \ -F "api_key=your-api-key" \ -F "[email protected]" \ --url http://manifold.metamatic.us/v1/compute/
e.g. JSON response:{ "task_id": "67cdd36a-b53b-427e-8f97-42d62a46c1d5" }
- HTTP GET
curl -X GET \ --url "http://manifold.metamatic.us/v1/compute/?task_id=your-task-id"
e.g. JSON response:
{ "volume": { "value":63999.92980959427, "UOM":"mm3" }, "facet_count": { "value":12, "UOM":"#" }, "bbox": { "value": { "width": 40.0, "height": 40.0, "length": 39.99999809265137 }, "UOM": "mm" }, "area": { "value": 9599.993515016226, "UOM": "mm2" } }