1.5 KiB
The Shape Library of OpenSCAD
There are a lot of shapes that are not available by default in OpenSCAD. So this is a library to get the necessary shapes that are not available in OpenSCAD by default.
Installation
To use a library in OpenSCAD, you simply need to download shapes.scad into the same folder as your file.
Then, at the top of your file, simply write:
include <shapes.scad>
Documentation and usage
This is the usage of every shapes of this library.
You can also find the basic shapes installed by defuault in the OpenSCAD cheat sheet
pyramid(h, w, l);
This function will render a basic square-base pyramid. This is an example:
pyramid(100, 50, 50);
prism(l, w, h);
This function will render a polyhedron of a triangular prism.
Example:
prism(10,10,10);
curve(w, h, l, dh);
This function will render a curved sheet
The variables works like this:
This is an example:
curve(10, 2, 25, 2);
Copyright
Note that some snippets presented here are not made by me and are found from the internet. Same for the images. The copyright of the images are in the quotes.
Otherwise this project is under GNU-GPL-v3.