I wrote a library for creating 3D models in PHP, it uses OpenScad in the background.
Why? From the README:
- PHP is full-blown general-purpose language with a lot of documentation around the internet
- There are full-blown IDEs that help with code completion
- PHP supports more paradigms, like object oriented programming
- Saner parameter names - for example the
cylinder
signature iscylinder(h, r, r1, r2, d, d1, d2, center)
compared to PhpScad version -new Cylinder(height, radius, bottomRadius, topRadius, diameter, bottomDiameter, topDiameter)
- note that in both OpenSCAD and PhpScad version many of the parameters are optional
- Created an interesting parametric shape? Cool, share it via composer because PHP has a package manager!
And here are links to two tutorials I wrote:
This might not be to everyone tastes, but if you already know PHP, it might make it a little easier.
You must log in or # to comment.
I will not use it, but this really amazing. Great job!
This is pretty cool! Thanks!