BandedScad is an OpenSCAD library.
It contains functions and modules to extend the OpenSCAD language.
It's a playground for experiments.
What it does ^
Main functionality:
- More control of the level of detail for a mesh, extend the control of number of facets used to generate an arc
- Useful constants
- Configurable object modules
- Figures (torus, wedge, funnel, ... )
- Rounded and chamfered edges
- Transform and edit objects
- Draft objects in data lists
- Create curves into a point list with functions.
These can load with
polygon()
- Create surfaces as data list with functions.
These can load with
polyhedron()
- Transform objects in a point list with affine transformations. Like transformation operator in OpenSCAD for object modules.
- Create and edit buildin primitives from OpenSCAD with functions
as data in a list.
(not finished yet) - Generate matrices for multmatrix
- Convert colors
- Create curves into a point list with functions.
These can load with
- Editing lists
- Most functions base on the STL from C++
- Edit and convert strings
- Math functions
- Various common math functions
- Functions for vector and matrices
- Functions for polygons and lines
- Calculate with complex numbers
- Algorithm with function literals
- Math operations on lists
- Helper functions
- Benchmark functions for speed
Separate stuff:
- Compatibility files to use some new buildin functions from OpenSCAD in older OpenSCAD version
Installation ^
You must extract archive and copy 'banded.scad' and folder 'banded/' into a directory and now you can use it here.
Or you can copy this into the library folder from OpenSCAD for global use. The path for this directory depends on your system:
OS | Path |
---|---|
Windows: | My Documents\OpenSCAD\libraries |
Linux: | $HOME/.local/share/OpenSCAD/libraries |
MacOS: | $HOME/Documents/OpenSCAD/libraries |
You can reach this from OpenSCAD menu File->Show Library Folder.
Use ^
Include library ^
You can include the whole library with
include <banded.scad>
You can load a specify libraries with
include <banded/ *** .scad>
Or even with use
. But if you need this defined constants
you must include the file separately.
So you can keep the namespace clean.
use <banded/ ??? .scad>
include <banded/constants.scad>
To consider ^
This library is designed for OpenSCAD version 2021.01.
Because of the use of new language features that generates a syntax error
on older OpenSCAD versions, the bibliothek can only used with
version 2021.01 or higher.
OpenSCAD can be downloaded from https://www.openscad.org/.