#openscad #stl #csg

scad_tree

Generate OpenSCAD code from Rust

11 unstable releases (3 breaking)

0.4.0 Jan 16, 2024
0.3.3 Oct 29, 2023
0.3.2 Apr 26, 2023
0.2.0 Apr 1, 2023
0.1.4 Mar 31, 2023

#2 in #openscad

MIT license

310KB
8K SLoC

scad_tree

A Rust solid modeling library that generates OpenSCAD code.

To use this library in your project add this to your Cargo.toml.

[dependencies]
scad_tree = { git="https://github.com/mrclean71774/scad_tree" }

Or you can get it from crates.io.

[dependencies]
scad_tree = "0.3.x"

To run the examples clone this repository and from the root folder run

cargo run --example example_name

Project Structure

  • scad_tree - The main crate with examples of usage.
    • examples/scad_tree - Explaines the main data structure and basic usage.
  • scad_tree_math - Linear algebra and other math mostly re-exported from scad_tree.
  • images - Images of things made with this library and images of some examples.
  • output - Output from some of the examples.

A Blender render of metric thread parts. metric_thread.png

A photo of my bottle example 3D printed. bottle_make.jpg

Dependencies