#openscad #stl #csg

scadtree

从 Rust 生成 OpenSCAD 代码

11 个不稳定版本 (3 个破坏性更新)

0.4.0 2024年1月16日
0.3.3 2023年10月29日
0.3.2 2023年4月26日
0.2.0 2023年4月1日
0.1.4 2023年3月31日

#2 in #openscad

每月45 次下载

MIT 许可证

310KB
8K SLoC

scad_tree

一个 Rust 稳定建模库,用于生成 OpenSCAD 代码。

要在项目中使用此库,请将以下内容添加到您的 Cargo.toml 文件中。

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

或者您可以从 crates.io 获取它。

[dependencies]
scad_tree = "0.3.x"

要运行示例,请克隆此存储库,然后在根目录中运行

cargo run --example example_name

项目结构

  • scad_tree - 包含使用示例的主要 crate。
    • examples/scad_tree - 解释主要数据结构和基本使用。
  • scad_tree_math - 线性代数和其他数学,大部分从 scad_tree 重导出。
  • images - 使用此库制作的事物和示例的图像。
  • output - 一些示例的输出。

Blender 渲染的公制螺纹部件。 metric_thread.png

我打印的瓶子示例的照片。 bottle_make.jpg

依赖项