增加注释,方便 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; $fn = 20;
// 圆角半径
round_corner_r = 1; round_corner_r = 1;
// 挂钩总体长边长度
length_long = 70; length_long = 70;
// 挂钩总体短边长度
length_short = 20; length_short = 20;
// 门厚度
door_thickness = 40; door_thickness = 40;
width = 8; // thickness = 8 // 挂钩总体宽度
width = 8;
surface_width = width - round_corner_r * 2; // 6 surface_width = width - round_corner_r * 2; // 6
// 挂钩的钩子部分的位置
hook_pos = 46; hook_pos = 46;
// 钩子到主体的间隔
hook_gap = 12; hook_gap = 12;
// 钩子长度
hook_length = 12; hook_length = 12;
hook_surface_width = surface_width - round_corner_r * 2; // 4 hook_surface_width = surface_width - round_corner_r * 2; // 4
strength_cube_width = width; strength_cube_width = width;

View File

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