vibe-openscad

bare-low/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 33.4s · 592/1606t · $0.0168
SCAD (101 lines)
$fn = 96;

// Dimensions
leaf_y = 30;
leaf_x = 25;
leaf_t = 2;

pin_d = 4;
pin_len = 32;

knuckle_od = 8;
knuckle_id = 4.6;
knuckle_seg = 6;

cs_thru_d = 3.2;
cs_top_d = 6;
cs_depth = 1;

eps = 0.05;

// Coordinate system:
// Pin axis: Y axis, centered at X=0, Z=0
// Leaves: flat in XY plane, thickness along Z
// Left leaf extends to X<0, right leaf extends to X>0

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

module knuckle(y0, len) {
    translate([0, y0, 0])
        difference() {
            cyl_y(knuckle_od, len);
            translate([0, -0.01, 0])
                cyl_y(knuckle_id, len + 0.02);
        }
}

module countersunk_hole(x, y) {
    translate([x, y, -leaf_t])
        cylinder(d = cs_thru_d, h = leaf_t * 3);

    translate([x, y, leaf_t / 2 - cs_depth])
        cylinder(d1 = cs_thru_d, d2 = cs_top_d, h = cs_depth + 0.01);
}

module leaf_plate(side = "left") {
    difference() {
        if (side == "left") {
            translate([-(knuckle_od / 2 + leaf_x), 0, -leaf_t / 2])
                cube([leaf_x + eps, leaf_y, leaf_t]);
        } else {
            translate([knuckle_od / 2 - eps, 0, -leaf_t / 2])
                cube([leaf_x + eps, leaf_y, leaf_t]);
        }

        for (yy = [7, 15, 23]) {
            if (side == "left")
                countersunk_hole(-23, yy);
            else
                countersunk_hole(23, yy);
        }
    }
}

module left_leaf_part() {
    union() {
        leaf_plate("left");

        // Left leaf knuckles: outer 2 + center 1
        knuckle(0, 6);
        knuckle(12, 6);
        knuckle(24, 6);
    }
}

module right_leaf_part() {
    union() {
        leaf_plate("right");

        // Right leaf knuckles: intermediate 2
        knuckle(6, 6);
        knuckle(18, 6);
    }
}

module pin_part() {
    translate([0, -1, 0])
        cyl_y(pin_d, pin_len);
}

// Assembly: fully open 180 degrees
color([0.55, 0.55, 0.55])
    left_leaf_part();

color([0.65, 0.65, 0.65])
    right_leaf_part();

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

meta

runIdbare-low_gpt-5.5-cae7ea962f28-2026-04-28T17-26-44-138Z
matrixIdbare-low/gpt-5.5
signaturecae7ea962f281ced…
provideropenai
modelgpt-5.5-2026-04-23
harnessbare
statussuccess
duration33.42s (wallclock: load + prompt eval + generation + network)
tokens592 in / 1606 out
wallclock tok/s48.1 tok/s (end-to-end)
cost$0.0168
createdAt2026-04-28T17:26:44.138Z
gitCommitbe87c9f2adaf
openscadOpenSCAD version 2026.04.27

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