// sphere_sweep の実験 #include "colors.inc" #include "shapes.inc" // チューブの三角形(regular triangle of tube) // R:三角形の半径(radius of triangle) // T:チューブの半径(radius of tube) #macro TubeTriangle(R, T) object { sphere_sweep { linear_spline 4 // number of spheres , T // , radius , T , T , T } } #end object { TubeTriangle(1.0, 0.2) pigment { color NeonPink } } // 座標軸 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, 600, -800> 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 }