vibe-openscad

iter-png-3/gemini-2.5-flash-lite / tier-1-mug

success tier 1

bare (gemini 2.5 flash-lite)

render
bare render of tier-1-mug
loading STL…
success 3.8s · 1397/1112t · $0.0006
SCAD (86 lines)
// マグカップの基本パラメータ
outer_diameter = 80; // 外径 (mm)
height = 100;       // 高さ (mm)
wall_thickness = 4; // 側面肉厚 (mm)
base_thickness = 6; // 底面厚み (mm)

// 内径の計算
inner_diameter = outer_diameter - 2 * wall_thickness;
inner_radius = inner_diameter / 2;
outer_radius = outer_diameter / 2;

// マグカップ本体の作成
module mug_body() {
    difference() {
        // 外側の円筒
        cylinder(h = height, d = outer_diameter, center = false, $fn = 100);

        // 内側のくり抜き
        translate([0, 0, base_thickness]) {
            cylinder(h = height - base_thickness + 0.1, d = inner_diameter, center = false, $fn = 100); // 少し高めに設定して確実にくり抜く
        }
    }
}

// 取手のパラメータ
handle_outer_projection = 12; // カップ外壁からの取手のリング外側の飛び出し量
handle_ring_thickness = 4;    // 取手のリングの太さ
handle_finger_hole_radius = 15; // 指が入るサイズ (半径)
handle_height_center = height / 2; // 取手を付ける中心高さ
handle_connector_radius = handle_ring_thickness; // 取手とカップ本体を繋ぐ部分の半径

// 取手のリングの形状
module handle_ring() {
    // 取手のリングの外側の半径
    handle_ring_outer_radius = outer_radius + handle_outer_projection;
    // 取手のリングの中心の半径
    handle_ring_center_radius = handle_ring_outer_radius - handle_ring_thickness / 2;

    rotate([90, 0, 0]) { // Z軸周りに90度回転して横向きにする
        translate([handle_ring_center_radius, 0, handle_height_center]) {
            // toroidal shape
            rotate_extrude(convexity = 10) {
                translate([handle_ring_thickness / 2, 0, 0]) {
                    circle(r = handle_ring_thickness / 2, $fn = 64);
                }
            }
        }
    }
}

// 取手の接続部分 (カップ本体と取手のリングを繋ぐ)
module handle_connectors() {
    // 取手のリングの円周方向の中心半径
    handle_ring_center_radius = outer_radius + handle_outer_projection + handle_ring_thickness / 2;

    // 取手の接続部分(カップ本体と取手のリングを繋ぐ)
    // 左側の接続
    hull() {
        // 取手のリングの左端 (回転後の位置を考慮)
        translate([-(handle_ring_center_radius - handle_ring_thickness/2), 0, handle_height_center]) {
            sphere(r = handle_connector_radius, $fn = 32);
        }
        // カップ本体の左側円周上の点
        translate([-outer_radius, 0, handle_height_center]) {
            sphere(r = handle_connector_radius, $fn = 32);
        }
    }
    // 右側の接続
    hull() {
        // 取手のリングの右端 (回転後の位置を考慮)
        translate([handle_ring_center_radius + handle_ring_thickness/2, 0, handle_height_center]) {
            sphere(r = handle_connector_radius, $fn = 32);
        }
        // カップ本体の右側円周上の点
        translate([outer_radius, 0, handle_height_center]) {
            sphere(r = handle_connector_radius, $fn = 32);
        }
    }
}

// マグカップ全体を結合
union() {
    mug_body();
    handle_ring();
    handle_connectors();
}
パラメータ (6)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIditer-png-3_gemini-2.5-flash-lite-dd5e50f719d7-2026-04-27T17-07-17-735Z
matrixIditer-png-3/gemini-2.5-flash-lite
signaturedd5e50f719d76380…
providergoogle
modelgemini-2.5-flash-lite
harnessbare
statussuccess
duration3.80s (wallclock: load + prompt eval + generation + network)
tokens1397 in / 1112 out
wallclock tok/s292.5 tok/s (end-to-end)
cost$0.0006
createdAt2026-04-27T17:07:17.735Z
gitCommitaf54e116f6f8
openscadOpenSCAD version 2026.04.27

iteration chain

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

prompt

OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。
底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。
さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。
取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。

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