vibe-openscad

bare-think-off/gemma-4-26b-a4b-it / tier-1-mug

success tier 1

bare (gemma 4 26b a4b)

render
bare render of tier-1-mug
loading STL…
success 18.9s · 142/828t · $0
SCAD (65 lines)
// Parameters
outer_diameter = 80;
height = 100;
wall_thickness = 4;
bottom_thickness = 6;
handle_radius = 12;
handle_thickness = 4;

// Calculated values
inner_diameter = outer_diameter - (wall_thickness * 2);
inner_height = height - bottom_thickness;

$fn = 100; // Smoothness

difference() {
    // Main body
    cylinder(d = outer_diameter, h = height);
    
    // Hollow interior
    translate([0, 0, bottom_thickness])
        cylinder(d = inner_diameter, h = inner_height + 1);
}

// Handle (Ring shape)
translate([outer_diameter / 2, 0, height / 2])
    rotate([90, 0, 0])
        difference() {
            // Outer part of the ring
            cylinder(r = handle_radius + handle_thickness, h = handle_thickness, center = true);
            // Inner part of the ring
            cylinder(r = handle_radius, h = handle_thickness + 2, center = true);
        }

// Connecting the handle to the cup (using a torus-like approach or simple cylinders)
// To ensure it is a single manifold object, we use a union of the ring and connecting parts.
// Actually, in OpenSCAD, adding a cylinder that intersects with the main body 
// automatically merges them when using union or simply placing them.

union() {
    // Main body
    difference() {
        cylinder(d = outer_diameter, h = height);
        translate([0, 0, bottom_thickness])
            cylinder(d = inner_diameter, h = height);
    }

    // Handle
    translate([outer_diameter / 2, 0, height / 2])
        rotate([90, 0, 0])
            difference() {
                // The ring itself
                rotate_extrude()
                    translate([handle_radius, 0, 0])
                        circle(r = handle_thickness);
                
                // This ensures the handle is actually a ring with a hole
                // (Handled by rotate_extrude + circle logic above)
            }
            
    // Note: The rotate_extrude approach above creates a ring centered at [handle_radius, 0, 0] 
    // relative to the handle's local coordinate system. 
    // Let's refine the handle to be a proper ring attached to the side.
}

// REFINED CODE STRUCTURE FOR CLEANER OUTPUT
パラメータ (6) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-think-off_gemma-4-26b-a4b-it-b31ce2d0f3e6-2026-10-06T19-44-22-369Z
matrixIdbare-think-off/gemma-4-26b-a4b-it
signatureb31ce2d0f3e6c6eb…
providergoogle
modelgemma-4-26b-a4b-it
harnessbare
statussuccess
duration18.89s (wallclock: load + prompt eval + generation + network)
tokens142 in / 828 out
wallclock tok/s43.8 tok/s (end-to-end)
cost$0
createdAt2026-10-06T19:44:22.369Z
gitCommitf9f85ea20c03
openscadOpenSCAD version 2026.09.23

prompt

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

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