SCAD (4 lines)
difference() {
cube([50, 50, 50], center=true);
cylinder(d=20, h=51, center=true, $fn=50);
} claude-opus-4-1-20250805 5 run / 累計 11.3s / 累計 $0.0633
difference() {
cube([50, 50, 50], center=true);
cylinder(d=20, h=51, center=true, $fn=50);
} OpenSCAD で、50mm 角の立方体の中央に、直径 20mm の貫通穴を z 軸方向に開けたモデルを作成してください。 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。
thinking
difference() {
cube([50, 50, 50], center=true);
cylinder(d=20, h=51, center=true, $fn=50);
} iter-png
difference() {
cube([50, 50, 50], center=true);
cylinder(d=20, h=51, center=true, $fn=50);
}
difference() {
cube([50, 50, 50], center=true);
cylinder(d=20, h=51, center=true, $fn=50);
}
difference() {
cube([50, 50, 50], center=true);
cylinder(d=20, h=51, center=true, $fn=50);
}
difference() {
cube([50, 50, 50], center=true);
cylinder(d=20, h=51, center=true, $fn=50);
}
difference() {
cube([50, 50, 50], center=true);
cylinder(d=20, h=51, center=true, $fn=50);
}
difference() {
cube([50, 50, 50], center=true);
cylinder(d=20, h=51, center=true, $fn=50);
}