Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to programming/generate a file for 3D printable object?

Tags:

php

printing

3d

I want to know if is it possible to generate with a PHP library or C/C++ or an another language a 3D object printable. Like the .stl files.

like image 370
Alaanor Avatar asked Jan 01 '26 09:01

Alaanor


1 Answers

You can easily write your own .stl ASCII files: http://en.wikipedia.org/wiki/STL_(file_format)#ASCII_STL

.stl files will always begin and end with a solid tag containing any number of facets.

Each facet will have a normal property and contain an outer loop tag which will hold your vertexs.

The facet's normal property and the vertexs use space separated floats.

All this is easily accomplished in C++, C, or PHP.

You can see an example of a simple cube here: http://people.sc.fsu.edu/~jburkardt/data/stla/stla.html

like image 76
Jonathan Mee Avatar answered Jan 03 '26 16:01

Jonathan Mee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!