vibe-openscad

tier-1-cube-with-hole / google/gemma-4-e4b

1 run / 累計 21.2s / 累計 $0

google (self-hosted) gemma-4-e4b bare

bare (provider default effort)

run detail →
render
bare render of tier-1-cube-with-hole
loading STL…
success 21.2s · 82/1019t
SCAD (10 lines)
difference() {
    // 外側の立方体 (50mm x 50mm x 50mm)
    cube([50, 50, 50]);

    // 中央に開ける貫通穴(円柱)を引く
    // 直径20mm -> 半径10mm。高さは立方体と同じ50mmで、Z軸方向に贯通させる。
    translate([0, 0, 0]) {
        cylinder(r=10, h=50);
    }
}

prompt

OpenSCAD で、50mm 角の立方体の中央に、直径 20mm の貫通穴を z 軸方向に開けたモデルを作成してください。

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