—
tier-2-l-bracket / gemma-4-26b-a4b-it
2 run / 累計 409.0s / 累計 $0
gemini gemma 4 26b a4b bare
bare (provider default effort)
run detail → render
loading STL…
$fn = 50;
difference() {
// --- L-bracket Body ---
union() {
// Horizontal flange: 50mm (W) x 40mm (D) x 3mm (T)
// Positioned so inner surface is at Z=0 and outer surface is at Z=3
cube([50, 40, 3]);
// Vertical flange: 50mm (W) x 3mm (T) x 40mm (H)
// Positioned so inner surface is at Y=0 and outer surface is at Y=-3
translate([0, -3, 0])
cube([50, 3, 40]);
}
// --- Countersunk Holes: Horizontal Plane (Top surface at Z=3) ---
// Holes are located at X=25, Y=10 and Y=30
for (y_pos = [10, 30]) {
// M4 Through-hole (Φ4.5mm)
translate([25, y_pos, -1])
cylinder(d=4.5, h=5);
// Countersink (Φ8mm, depth 2mm)
// d1 is the base diameter (at the outer surface Z=3), d2 is the top diameter
translate([25, y_pos, 3])
cylinder(d1=8, d2=4.5, h=2);
}
// --- Countersunk Holes: Vertical Plane (Back surface at Y=-3) ---
// Holes are located at X=25, Z=10 and Z=30
for (z_pos = [10, 30]) {
// M4 Through-hole (Φ4.5mm)
translate([25, -4, z_pos])
rotate([0, 90, 0])
cylinder(d=4.5, h=5);
// Countersink (Φ8mm, depth 2mm)
// Rotated to face the outer surface Y=-3
translate([25, -3, z_pos])
rotate([0, 90, 0])
cylinder(d1=8, d2=4.5, h=2);
}
} prompt
OpenSCAD で、L 字に折れた金具(L-bracket)を作ってください。 形状: - 水平面と垂直面の 2 つのフランジが直角に繋がっている - 水平面は 50mm × 40mm(幅 × 奥行き) - 垂直面は 50mm × 40mm(幅 × 高さ) - 板厚はどちらも 3mm - 内側コーナーが原点になるように配置(水平面は +Y 方向、垂直面は +Z 方向に伸びる) 皿穴(countersunk holes): - 各面に 2 個ずつ、合計 4 個 - M4 ねじ用(貫通穴 Φ4.5mm + 皿座面 Φ8mm × 深さ 2mm) - 各面の中心線上で、面の縁から 10mm 内側、左右対称に 2 個並べる - 皿座面は外側(ボルト頭が当たる側)に向ける 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。
variant: thinking
—
SCAD (43 lines)
$fn = 50;
difference() {
// --- L-bracket Body ---
union() {
// Horizontal flange: 50mm (W) x 40mm (D) x 3mm (T)
// Positioned so inner surface is at Z=0 and outer surface is at Z=3
cube([50, 40, 3]);
// Vertical flange: 50mm (W) x 3mm (T) x 40mm (H)
// Positioned so inner surface is at Y=0 and outer surface is at Y=-3
translate([0, -3, 0])
cube([50, 3, 40]);
}
// --- Countersunk Holes: Horizontal Plane (Top surface at Z=3) ---
// Holes are located at X=25, Y=10 and Y=30
for (y_pos = [10, 30]) {
// M4 Through-hole (Φ4.5mm)
translate([25, y_pos, -1])
cylinder(d=4.5, h=5);
// Countersink (Φ8mm, depth 2mm)
// d1 is the base diameter (at the outer surface Z=3), d2 is the top diameter
translate([25, y_pos, 3])
cylinder(d1=8, d2=4.5, h=2);
}
// --- Countersunk Holes: Vertical Plane (Back surface at Y=-3) ---
// Holes are located at X=25, Z=10 and Z=30
for (z_pos = [10, 30]) {
// M4 Through-hole (Φ4.5mm)
translate([25, -4, z_pos])
rotate([0, 90, 0])
cylinder(d=4.5, h=5);
// Countersink (Φ8mm, depth 2mm)
// Rotated to face the outer surface Y=-3
translate([25, -3, z_pos])
rotate([0, 90, 0])
cylinder(d1=8, d2=4.5, h=2);
}
}