slug
eight
type
Post
status
Published
category
1-3D打印
date
Aug 30, 2026
summary
tags
tools
password
icon
 

1.设计方案:

可以,下面整理成一份简洁完整教程。目标是:
用 Rhino + Grasshopper + GhPython 生成一个边长可调的正八面体,并让其中一个面贴在 XY 平面,方便 3D 打印。

1. 打开 Grasshopper

在 Rhino 中输入:
打开 Grasshopper。

2. 放一个 Number Slider

放置:
设为:
这里的 50 表示正八面体的边长:
50 mm50\text{ mm}

3. 放一个 GhPython 电池

搜索:
放入一个 GhPython 电池。
保持默认:
不要改名。
连接:

4. 输入代码

双击 GhPython 电池,把原来的代码全部删除。
然后只复制下面代码:
注意:不要复制代码框外面的 python 或三个反引号。

5. 查看结果

把 Slider 设置为:
 
notion image

6. 整个 Grasshopper 只需要两个电池

实际上你的 Grasshopper 文件非常简单:
就这么简单。

7. 代码原理

 
notion image
 
代码再做两件事:

8. 最后导出打印

模型确认正确后:
在 Grasshopper 中:
然后回到 Rhino。
选中模型:
即可用于 3D 打印。
最终流程可以只记住:

2.电池组合:

 
notion image
 

3.效果图:

notion image
 
 
 
 

 
现代数学启蒙3D教程3:3D圆环设计现代数学启蒙3D教程5:正12面体设计
Loading...