円柱 cylinder

円柱は一直線を描いたり、そのまま円柱の形を利用するなど使い方がいろいろあります。
cylinder { <0,0,0>,<0,0,0>,R } 座標を2箇所指定して、その間を結ぶ円柱を描きます。Rは円柱の太さ(半径)です。

#include "colors.inc"
#include "shapes.inc"

camera { location<0,20,-30> look_at<0,0,0> }
light_source { <40,40,-40> color rgb 1 }

plane { y,0 pigment { checker color White, color Gray50 } scale 10 }

cylinder { <0,0,0>,<0,10,0>,4 pigment { color Cyan } }

cylinder { <-18,0,0>,<2,15,0>,0.5 pigment { color Pink } }