vibe-openscad

bare-high/gpt-5-mini / tier-2-l-bracket

success tier 2

bare (gpt 5 mini)

render
bare render of tier-2-l-bracket
loading STL…
success 170.8s · 294/14862t · $0.0298
SCAD (58 lines)
// L-bracket with countersunk holes (inner corner at origin)
// Horizontal flange: +Y direction
// Vertical flange: +Z direction

$fn = 64;

width = 50;        // X dimension
depth = 40;        // horizontal flange depth (Y)
height = 40;       // vertical flange height (Z)
thickness = 3;     // plate thickness

hole_d = 4.5;      // through hole diameter for M4
cs_d = 8;          // countersink diameter
cs_depth = 2;      // countersink depth
edge_offset = 10;  // distance from face edges for holes

module bracket() {
    union() {
        // horizontal flange (X × Y × Z)
        translate([0, 0, 0]) cube([width, depth, thickness]);
        // vertical flange (X × Y(thickness) × Z)
        translate([0, 0, 0]) cube([width, thickness, height]);
    }
}

module horiz_countersunk_hole(x, y) {
    // countersink (flat-bottom) on outside (top) of horizontal flange
    translate([x, y, thickness - cs_depth])
        cylinder(h = cs_depth, r = cs_d/2);
    // through hole
    translate([x, y, -5])
        cylinder(h = thickness + 10, r = hole_d/2);
}

module vert_countersunk_hole(x, z) {
    // countersink (flat-bottom) on outside (outer Y face) of vertical flange
    translate([x, thickness - cs_depth/2, z])
        rotate([90, 0, 0])
            cylinder(h = cs_depth, r = cs_d/2, center = true);
    // through hole (axis along Y)
    translate([x, thickness/2, z])
        rotate([90, 0, 0])
            cylinder(h = 200, r = hole_d/2, center = true);
}

difference() {
    bracket();

    // horizontal flange holes (centerline along X)
    for (ypos = [edge_offset, depth - edge_offset]) {
        horiz_countersunk_hole(width/2, ypos);
    }

    // vertical flange holes (centerline along X)
    for (zpos = [edge_offset, height - edge_offset]) {
        vert_countersunk_hole(width/2, zpos);
    }
}
パラメータ (8)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-high_gpt-5-mini-c048fc97ad01-2026-04-28T18-52-39-973Z
matrixIdbare-high/gpt-5-mini
signaturec048fc97ad01b5f2…
provideropenai
modelgpt-5-mini-2025-08-07
harnessbare
statussuccess
duration170.78s (wallclock: load + prompt eval + generation + network)
tokens294 in / 14862 out
wallclock tok/s87.0 tok/s (end-to-end)
cost$0.0298
createdAt2026-04-28T18:52:39.973Z
gitCommit781e6c683dda
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。