跳至主要内容

博文

目前显示的是 2025的博文

程序员友好的 3D 建模工具 OpenSCAD

看到油管的一个博主介绍了他使用 OpenSCAD 来[定义模型](https://makerworld.com/en/models/1478585-fully-customizable-ikea-components-parametric#profileId-1543526),颇感兴趣。 [OpenSCAD](https://openscad.org/index.html) 是一款免费的工具,支持包括 Linux、Windows 和 MacOS 在内的主要操作系统。不同于常见的 3D 建模工具,它的侧重点在于 CAD 方面。更为有趣的事,它使用了[一种语言](https://en.wikibooks.org/wiki/OpenSCAD_Tutorial)来定义组件。 以下是 Google search 的 AI summary,总结了 OpenSCAD 使用的编程语言的特点——函数式编程,允许用户方便的定义几何形状并对其进行变换。 OpenSCAD uses a functional programming language that is used to define 2D and 3D models through a script. This script is a free-format list of action statements, allowing users to create and manipulate geometric primitives to build complex objects. While the syntax resembles JavaScript or C, it's not a general-purpose programming language but rather a declarative language focused on geometric descriptions. Key characteristics of the OpenSCAD language: - Functional Programming: OpenSCAD's syntax is influenced by functional programming principles, w...