Mathematical shapes for OpenSCAD.
Go to file
2020-08-29 18:42:36 +02:00
LICENSE Adding LICENSE 2020-08-29 18:42:27 +02:00
README.md FIxing typo 2020-08-29 18:42:36 +02:00
shapes.scad Removing a section 2020-08-29 17:18:35 +02:00

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.

prism

Example:

prism(10,10,10);

curve(w, h, l, dh);

source

This function will render a curved sheet

The variables works like this: schema

This is an example:

example

curve(10, 2, 25, 2);

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.