vibe-openscad

iter-png-2/gpt-5.5 / tier-3-butt-hinge

success tier 3

bare (gpt 5.5)

render
bare render of tier-3-butt-hinge
loading STL…
success 112.1s · 2082/5005t · $0.0527
SCAD (124 lines)
$fn = 96;

leaf_y = 30;
leaf_w = 25;
plate_t = 2;

pin_d = 4;
pin_len = 32;

knuckle_od = 8;
knuckle_id = 4.6;
knuckle_r = knuckle_od / 2;
seg_len = 6;

through_d = 3.2;
cs_d = 6;
cs_depth = 1;

eps = 0.02;
connector_overlap = 0.35;

// Flat leaf plates are placed outside the knuckle OD.
// Pin axis is the Y axis, centered at X=0, Z=0.
left_inner_x  = -knuckle_r;
left_outer_x  = left_inner_x - leaf_w;
right_inner_x =  knuckle_r;
right_outer_x = right_inner_x + leaf_w;

screw_edge_margin = 7;
left_screw_x  = left_outer_x + screw_edge_margin;
right_screw_x = right_outer_x - screw_edge_margin;

module y_cylinder(h, d, center=true) {
    rotate([-90, 0, 0])
        cylinder(h=h, d=d, center=center);
}

module countersunk_hole(x, y) {
    translate([x, y, 0])
        cylinder(h=plate_t + 2 * eps, d=through_d, center=true);

    translate([x, y, plate_t / 2 - cs_depth])
        cylinder(h=cs_depth, d1=through_d, d2=cs_d, center=false);

    translate([x, y, plate_t / 2 - eps])
        cylinder(h=2 * eps, d=cs_d, center=false);
}

module knuckle(yc) {
    translate([0, yc, 0])
        difference() {
            y_cylinder(seg_len, knuckle_od, center=true);
            y_cylinder(seg_len + 2 * eps, knuckle_id, center=true);
        }
}

module left_connector(yc) {
    x1 = left_inner_x - connector_overlap;
    x2 = -knuckle_r + connector_overlap;
    translate([(x1 + x2) / 2, yc, 0])
        cube([x2 - x1, seg_len, plate_t], center=true);
}

module right_connector(yc) {
    x1 = knuckle_r - connector_overlap;
    x2 = right_inner_x + connector_overlap;
    translate([(x1 + x2) / 2, yc, 0])
        cube([x2 - x1, seg_len, plate_t], center=true);
}

module left_plate() {
    translate([(left_outer_x + left_inner_x) / 2, 0, 0])
        cube([leaf_w, leaf_y, plate_t], center=true);
}

module right_plate() {
    translate([(right_inner_x + right_outer_x) / 2, 0, 0])
        cube([leaf_w, leaf_y, plate_t], center=true);
}

module left_leaf() {
    difference() {
        union() {
            left_plate();

            for (yc = [-12, 0, 12]) {
                knuckle(yc);
                left_connector(yc);
            }
        }

        for (yh = [-8, 0, 8])
            countersunk_hole(left_screw_x, yh);
    }
}

module right_leaf() {
    difference() {
        union() {
            right_plate();

            for (yc = [-6, 6]) {
                knuckle(yc);
                right_connector(yc);
            }
        }

        for (yh = [-8, 0, 8])
            countersunk_hole(right_screw_x, yh);
    }
}

module pin_axis() {
    y_cylinder(pin_len, pin_d, center=true);
}

color([0.50, 0.50, 0.50])
    left_leaf();

color([0.62, 0.62, 0.62])
    right_leaf();

color([0.18, 0.18, 0.18])
    pin_axis();
パラメータ (14)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIditer-png-2_gpt-5.5-cb3206e35250-2026-04-28T17-36-34-426Z
matrixIditer-png-2/gpt-5.5
signaturecb3206e3525044e5…
provideropenai
modelgpt-5.5-2026-04-23
harnessbare
statussuccess
duration112.07s (wallclock: load + prompt eval + generation + network)
tokens2082 in / 5005 out
wallclock tok/s44.7 tok/s (end-to-end)
cost$0.0527
createdAt2026-04-28T17:36:34.426Z
gitCommitbe87c9f2adaf
openscadOpenSCAD version 2026.04.27

iteration chain

各 iteration step は独立した benchmark run です。parentRunId で前段にリンクします。

prompt

OpenSCAD で、家具用の小型バット蝶番(butt hinge)を作ってください。
3 つのパーツ(左板、右板、ピン軸)が組み合わさって動作する完成品を、
「開いた状態(180°)」で 1 つの SCAD ファイルに配置して出力します。

寸法と配置:
- 板(leaf)2 枚: 30mm × 25mm × 厚さ 2mm の鉄板形状
  - 縦 30mm の辺がピン軸に沿う(ヒンジ軸方向)
  - 横 25mm の辺が回転で開く方向に伸びる
- ピン軸: 直径 4mm の円柱、長さ 32mm(両端 1mm ずつ knuckle から飛び出す)
- knuckle(筒部): 縦 30mm を 5 等分(各 6mm)に区切り、左板に 3 個・右板に 2 個を
  互い違いに配置(左板は外側 2 個 + 中央 1 個、右板は中間 2 個)
- knuckle 外径 8mm、内径はピン軸 + 0.3mm クリアランス(= 4.6mm 穴)
- 左板と右板はピン軸を共有して回転可能。180° 開いた状態で、両板の
  平らな面が同一平面に来るように配置する
- 各板の knuckle から離れた側に、M3 用の皿穴を 3 個ずつ
  (穴ピッチは板の縦方向に 8mm 間隔、皿穴は表面から見て直径 6mm × 深さ 1mm
  のテーパ + 直径 3.2mm の貫通穴)

座標系:
- ピン軸の中心線を Y 軸に重ねる(ピン軸は +Y 方向)
- 板の平らな面は Z 軸に直交し、左板が x<0 側、右板が x>0 側に伸びる(180° 開)
- knuckle は X=0 を中心とし、Y 方向に 6mm ずつ並ぶ

完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。
コードのみで、追加の説明は不要です。