项目
在 GitHub 查看
OskarLinde/scad-utils
关于
OpenSCAD 实用库
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文scad-utils
Utility libraries for OpenSCAD
Morphology
contains basic 2D morphology operations
inset(d=1) - creates a polygon at an offset d inside a 2D shape
outset(d=1) - creates a polygon at an offset d outside a 2D shape
fillet(r=1) - adds fillets of radius r to all concave corners of a 2D shape
rounding(r=1) - adds rounding to all convex corners of a 2D shape
shell(d,center=false) - makes a shell of width d along the edge of a 2D shape
- positive values of d places the shell on the outside
- negative values of d places the shell on the inside
- center=true and positive d places the shell centered on the edge
Examples
With a basic sample polygon shape,
module shape() {
polygon([[0,0],[1,0],[1.5,1],[2.5,1],[2,-1],[0,-1]]);
}
and $fn=32;.
inset(d=0.3) shape();

outset(d=0.3) shape();

rounding(r=0.3) shape();

fillet(r=0.3) shape();

*shell(d=0.3) shape();

*shell(d=-0.3) shape();

*shell(d=0.3,center=true) shape();

Mirror
contains simple mirroring functions
mirror_x()
mirror_y()
mirror_z()
example:
module arrow(l=1,w=.6,t=0.15) {
mirror_y() polygon([[0,0],[l,0],[l-w/2,w/2],[l-w/2-sqrt(2)*t,w/2],[l-t/2-sqrt(2)*t,t/2],[0,t/2]]);
}
探索相关项目
加载中…