tier-2-l-bracket / openai/gpt-oss-20b
1 run / 累計 16.1s / 累計 $0
openai (self-hosted) gpt-oss-20b bare
bare (provider default effort)
run detail → render
loading STL…
// L‑bracket with countersunk M4 holes
module bracket() {
// dimensions
w = 50; // horizontal width (X)
d = 40; // horizontal depth (Y)
h = 3; // plate thickness (Z for horizontal face)
v = 3; // vertical plate thickness (X)
ht = 40; // height of vertical plate (Z)
eps = 0.01; // small offset to avoid coplanar issues
// Create the L shape
difference() {
union() {
// horizontal face
translate([0, 0, 0]) cube([w, d, h]);
// vertical face
translate([0, 0, 0]) cube([v, d, ht]);
}
// Remove the overlapping corner cube
translate([0, 0, 0]) cube([v, d, h]);
}
// --------- Countersunk holes on horizontal face (XY plane) ----------
for (x = [10, 40]) {
// Big cone part (countersink)
translate([x, d/2 - 0.5, 0])
rotate([90, 0, 0]) // align along Z
cylinder(r=4, h=2 + eps);
// Small drill part
translate([x, d/2 - 0.5, 0])
rotate([90, 0, 0])
cylinder(r=2.25, h=h + eps);
}
// --------- Countersunk holes on vertical face (XZ plane) ----------
for (x = [10, 40]) {
// Big cone part (countersink)
translate([x, -eps, ht/2])
rotate([0, 90, 0]) // align along Y
cylinder(r=4, h=2 + eps);
// Small drill part
translate([x, -eps, ht/2])
rotate([0, 90, 0])
cylinder(r=2.25, h=v + eps);
}
}
bracket(); 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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。