https://github.com/tomashubelbauer/openscad-aesthetic-cube
A cube with configurable features (faces, edges and corners).
https://github.com/tomashubelbauer/openscad-aesthetic-cube
openscad openscad-module
Last synced: 4 months ago
JSON representation
A cube with configurable features (faces, edges and corners).
- Host: GitHub
- URL: https://github.com/tomashubelbauer/openscad-aesthetic-cube
- Owner: TomasHubelbauer
- Created: 2023-12-02T22:46:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-02T23:24:13.000Z (over 2 years ago)
- Last Synced: 2025-06-22T14:06:40.613Z (12 months ago)
- Topics: openscad, openscad-module
- Language: OpenSCAD
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# OpenSCAD Aesthetic Cube
This repository includes an OpenSCAD module for drawing a cube which comprises
of individual cubes representing its faces, edges and corners.
The cude has an `inset` argument which determines several values in one number:
the depth of all the face cubes, the size of all the square faces of edge ends
and the size of all the cubes making the cube corners.
By default, `aesthetic_cube` renders all faces, edges and corners making it
appear as a normal cube:

The signature of the module has four required parameters:
`width`, `depth`, `height` and `inset`.
The individual sub-cubes are controlled via optional parameters which all
default to `true` and are self-explanatory:
- `leftFace`
- `rightFace`
- `topFace`
- `bottomFace`
- `backFace`
- `frontFace`
- `leftTopEdge`
- `rightTopEdge`
- `leftBottomEdge`
- `rightBottomEdge`
- `leftBackEdge`
- `rightBackEdge`
- `leftFrontEdge`
- `rightFrontEdge`
- `topBackEdge`
- `topFrontEdge`
- `bottomBackEdge`
- `bottomFrontEdge`
- `leftTopBackCorner`
- `leftTopFrontCorner`
- `rightTopBackCorner`
- `rightTopFrontCorner`
- `leftBottomBackCorner`
- `leftBottomFrontCorner`
- `rightBottomBackCorner`
- `rightBottomFrontCorner`
A cube with only faces but no edges or corners would look like this:

## Installation
Use Git Modules to check out this repository as a submodule of your repository.
Reference the module via the standard OpenSCAD `use` directive:
```openscad
use
// Pass any of the above arguments to turn individual cube features on/off.
aesthetic_cube(
60,
40,
20,
1
);
```