vibe-openscad

bare-xhigh/gpt-5.6-terra / tier-2-l-bracket

success tier 2

bare (gpt 5.6 terra)

render
bare render of tier-2-l-bracket
loading STL…
success 24.1s · 294/2514t · $0.0308
SCAD (55 lines)
// L-bracket dimensions
width  = 50;
depth  = 40;
height = 40;
thick  = 3;

// Hole dimensions
hole_d       = 4.5;
csk_d        = 8;
csk_depth    = 2;
edge_offset  = 10;
hole_x       = width / 2 - edge_offset;

$fn = 64;

// Horizontal flange hole: countersink faces downward (-Z)
module horizontal_hole(x, y) {
    translate([x, y, -thick - 0.1])
        cylinder(h = thick + 0.2, d = hole_d);

    translate([x, y, -thick])
        cylinder(h = csk_depth + 0.01, d1 = csk_d, d2 = hole_d);
}

// Vertical flange hole: countersink faces outward (-Y)
module vertical_hole(x, z) {
    translate([x, -thick - 0.1, z])
        rotate([-90, 0, 0])
            cylinder(h = thick + 0.2, d = hole_d);

    translate([x, -thick, z])
        rotate([-90, 0, 0])
            cylinder(h = csk_depth + 0.01, d1 = csk_d, d2 = hole_d);
}

difference() {
    union() {
        // Horizontal flange: extends in +Y direction
        translate([-width / 2, 0, -thick])
            cube([width, depth, thick]);

        // Vertical flange: extends in +Z direction
        translate([-width / 2, -thick, 0])
            cube([width, thick, height]);

        // Solid corner connection
        translate([-width / 2, -thick, -thick])
            cube([width, thick, thick]);
    }

    for (x = [-hole_x, hole_x]) {
        horizontal_hole(x, depth / 2);
        vertical_hole(x, height / 2);
    }
}
パラメータ (8) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-xhigh_gpt-5.6-terra-4e5659d0095d-2026-09-05T10-27-46-470Z
matrixIdbare-xhigh/gpt-5.6-terra
signature4e5659d0095d4ae9…
provideropenai
modelgpt-5.6-terra
harnessbare
statussuccess
duration24.13s (wallclock: load + prompt eval + generation + network)
tokens294 in / 2514 out
wallclock tok/s104.2 tok/s (end-to-end)
cost$0.0308
createdAt2026-09-05T10:27:46.470Z
gitCommit6126da97a014
openscadOpenSCAD version 2026.04.27

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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。