SCAD (11 lines)
// 1段目(底面)
translate([0, 0, 0])
cube([60, 60, 10], center=true);
// 2段目(中段)
translate([0, 0, 10])
cube([40, 40, 10], center=true);
// 3段目(頂上)
translate([0, 0, 20])
cube([20, 20, 10], center=true); claude-opus-4-20250514 5 run / 累計 17.2s / 累計 $0.0971
// 1段目(底面)
translate([0, 0, 0])
cube([60, 60, 10], center=true);
// 2段目(中段)
translate([0, 0, 10])
cube([40, 40, 10], center=true);
// 3段目(頂上)
translate([0, 0, 20])
cube([20, 20, 10], center=true); OpenSCAD で、底辺 60mm × 60mm × 高さ 10mm の正方形の板の中央に、それより一回り小さい 40mm × 40mm × 高さ 10mm の板を載せ、さらにその中央に 20mm × 20mm × 高さ 10mm の板を 載せた、3 段の階段状ピラミッドを作ってください。各段は中心を揃えて積み上げます。 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。
thinking
// 1段目(底面)
translate([0, 0, 0])
cube([60, 60, 10], center=true);
// 2段目(中段)
translate([0, 0, 10])
cube([40, 40, 10], center=true);
// 3段目(頂上)
translate([0, 0, 20])
cube([20, 20, 10], center=true); iter-png
// 1段目(底面)
translate([0, 0, 0])
cube([60, 60, 10], center=true);
// 2段目(中段)
translate([0, 0, 10])
cube([40, 40, 10], center=true);
// 3段目(頂上)
translate([0, 0, 20])
cube([20, 20, 10], center=true);
// 1段目(底面)
translate([0, 0, 0])
cube([60, 60, 10], center=true);
// 2段目(中段)
translate([0, 0, 10])
cube([40, 40, 10], center=true);
// 3段目(頂上)
translate([0, 0, 20])
cube([20, 20, 10], center=true);
// 1段目(底面)
translate([0, 0, 0])
cube([60, 60, 10], center=true);
// 2段目(中段)
translate([0, 0, 10])
cube([40, 40, 10], center=true);
// 3段目(頂上)
translate([0, 0, 20])
cube([20, 20, 10], center=true);
// 1段目(底面)
translate([0, 0, 0])
cube([60, 60, 10], center=true);
// 2段目(中段)
translate([0, 0, 10])
cube([40, 40, 10], center=true);
// 3段目(頂上)
translate([0, 0, 20])
cube([20, 20, 10], center=true);
// 1段目(底面)
translate([0, 0, 0])
cube([60, 60, 10], center=true);
// 2段目(中段)
translate([0, 0, 10])
cube([40, 40, 10], center=true);
// 3段目(頂上)
translate([0, 0, 20])
cube([20, 20, 10], center=true);
// 1段目(底面)
translate([0, 0, 0])
cube([60, 60, 10], center=true);
// 2段目(中段)
translate([0, 0, 10])
cube([40, 40, 10], center=true);
// 3段目(頂上)
translate([0, 0, 20])
cube([20, 20, 10], center=true);