This repository contains the CadQuery code and an accompanying Bash script to generate a 3D octahedron fractal called the "Octahedroflake." The Octahedroflake is a higher-dimensional analog of the Sierpinski Triangle.
- Pre-generated Models
- Prerequisites
- Usage
- File Descriptions
- Restrictions on Selling the Model
- Feedback and Contributions
- License
Download pre-generated Octahedroflake models using the following link:
Pre-generated Octahedroflake Models
This link also provides slicing and printing instructions, as well as photos of printed models created by users.
To utilize this repository, ensure you have CadQuery 2.0 or a later version installed on your system. Follow the installation instructions from the official CadQuery documentation:
CadQuery Installation Instructions
Generate an Octahedroflake by running the `run.sh` script in your terminal:
./run.sh
You can also customize the parameters of the generated fractal using optional command-line arguments. For example:
./run.sh -i 4 -l 0.2 -n 0.4 -m 150
To view a full list of command-line options, run:
./run.sh -h
python3 /home/octahedroflake.py --iterations 6 --layer-height 0.2 --nozzle-diameter 0.4 --size-multiplier 1.377628
This Python script generates the Octahedroflake using CadQuery. It defines the parameters and functions necessary to create the fractal and exports the result as an STL file.
This Bash script streamlines running the `octahedroflake.py` script by offering a user-friendly interface. Specify various parameters, such as the number of iterations, layer height, nozzle diameter, and model height, through command-line arguments or interactive prompts. The script also provides a summary of the resulting model's dimensions and other characteristics.
The Octahedroflake model is for personal use only. Please refrain from selling this model or claiming it as your own work.
As my first CadQuery project, I welcome any input or feedback. Please feel free to open an issue or submit a pull request if you have suggestions for improvements.
docker build -t cadquery:fractal .
docker run -v $(pwd)/output:/home/output -it cadquery:fractal
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.