增加注释,方便 makerworld 上传参数化模型

This commit is contained in:
2025-06-25 23:10:46 +08:00
parent 4bd050fe9a
commit ecfe200c0c
2 changed files with 30 additions and 16 deletions

View File

@ -1,16 +1,26 @@
$fn = 20;
// 圆角半径
round_corner_r = 1;
// 挂钩总体长边长度
length_long = 70;
// 挂钩总体短边长度
length_short = 20;
// 门厚度
door_thickness = 40;
width = 8; // thickness = 8
// 挂钩总体宽度
width = 8;
surface_width = width - round_corner_r * 2; // 6
// 挂钩的钩子部分的位置
hook_pos = 46;
// 钩子到主体的间隔
hook_gap = 12;
// 钩子长度
hook_length = 12;
hook_surface_width = surface_width - round_corner_r * 2; // 4
strength_cube_width = width;

View File

@ -3,6 +3,7 @@
width = 8;
// 卡槽长度
height = 200;
// 卡槽厚度
thickness = 8;
// 门框宽度
@ -10,6 +11,8 @@ frame_width = 58;
// 门框深度
frame_depth = 12;
union() {
// 卡槽
difference() {
union() {
cube([frame_width + width * 2, height, frame_depth + thickness]);
@ -23,8 +26,9 @@ difference() {
};
}
// 挂钩
translate([frame_width / 2 + width, frame_width / 2 + width, frame_depth + thickness])
cylinder(r=15, h=10);
translate([frame_width / 2 + width, frame_width / 2 + width, frame_depth + thickness + 10])
cylinder(r=30, h=8);
}