vibe-openscad

bare-low/o3 / tier-1-mug

success tier 1

bare (o3)

render
bare render of tier-1-mug
loading STL…
success 32.1s · 168/1918t · $0.0157
SCAD (40 lines)
// Parameters
mug_outer_radius = 40;   // 80mm diameter
wall_thickness   = 4;
bottom_thickness = 6;
mug_height       = 100;

inner_radius     = mug_outer_radius - wall_thickness;          // 36mm
inner_height     = mug_height - bottom_thickness;              // 94mm

handle_major_radius = 12;   // distance from torus center to tube center
handle_tube_radius  = 4;    // thickness of the handle tube

// Mug
module mug(){
    difference(){
        cylinder(h = mug_height, r = mug_outer_radius, $fn = 128);
        translate([0,0,bottom_thickness])
            cylinder(h = inner_height, r = inner_radius, $fn = 128);
    }
}

// Torus (handle)
module torus(R, r){
    rotate_extrude(convexity = 10, $fn = 128)
        translate([R,0,0])
            circle(r = r, $fn = 64);
}

// Handle positioned on the side
module handle(){
    translate([mug_outer_radius + handle_major_radius - 2, 0, mug_height/2])
        rotate([0,90,0])       // axis along X
            torus(handle_major_radius, handle_tube_radius);
}

// Assemble
union(){
    mug();
    handle();
}
パラメータ (6)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-low_o3-0ce06ef53911-2026-04-27T22-07-01-161Z
matrixIdbare-low/o3
signature0ce06ef539119ebd…
provideropenai
modelo3-2025-04-16
harnessbare
statussuccess
duration32.06s (wallclock: load + prompt eval + generation + network)
tokens168 in / 1918 out
wallclock tok/s59.8 tok/s (end-to-end)
cost$0.0157
createdAt2026-04-27T22:07:01.161Z
gitCommit7b4e701995ea
openscadOpenSCAD version 2026.04.27

prompt

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

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