#include "colors.inc" #include "shapes.inc" // 鉄アレイの定義 #declare Dumbbell = merge { object { Disk_X scale <1.0, 0.25, 0.25> } // 取っ手 object { Sphere translate <-2.0, 0.0, 0.0> } // 玉 object { Sphere translate < 2.0, 0.0, 0.0> } // 玉 } // 鉄アレイの配置 object { Dumbbell // 標準の鉄アレイ pigment { color Brown } } object { Dumbbell scale 0.5 // 軽い鉄アレイ? translate -2.0*z pigment { color Navy } } // 座標軸 object { Cylinder_X scale 0.02 pigment{color Red} } // x軸 object { Cylinder_Y scale 0.02 pigment{color Green} } // y軸 object { Cylinder_Z scale 0.02 pigment{color Blue} } // z軸 // 背景 background { color LightBlue } // 照明 light_source { <500, 800, -600> // 照明の位置 color White*2 parallel point_at <0, 0, 0> } // カメラ camera{ location <5.0, 6.0, -8.0> // カメラの位置 look_at <0.0, 0.0, 0.0> // カメラの注目する位置 angle 35 // カメラの視野角 }