Last updated: March 2008. Kajiyama             [ 目次に戻る ]

立体図形の回転移動


サンプル coordi-rotate00.pov

//coordi-rotate00.pov
// POV-Ray 3.6 scene file by Kajiyama

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

//カメラ設定
camera{
    location < 8,3,-17>
    look_at <5,3,1>
    angle 45
}
//ライト設定
light_source{
    <10,20,-10> color White*1.6
}

// XYZ座標空間

// 座標系の表示
// Z軸
cylinder{<0,0,-5>,<0,0,23>,0.05
pigment{color Red}
finish{phong 1 reflection 0.1}
}
cone{<0,0,23>,0.3
<0,0,24.5>,0
pigment{color Red}
}
// Z文字
cylinder{<-0.5,0.5,0>,<0.5,0.5,0>,0.08
pigment{color Red}
finish{phong 1 reflection 0.1}
translate <0,1.1,25>
}
cylinder{<0.5,0.5,0>,<-0.5,-0.5,0>,0.08
pigment{color Red}
finish{phong 1 reflection 0.1}
translate <0,1.1,25>
}
cylinder{ <-0.5,-0.5,0>, <0.5,-0.5,0>,0.08
pigment{color Red}
finish{phong 1 reflection 0.1}
translate <0,1.1,25>
}
// X軸
cylinder{<-5,0,0>,<10,0,0>,0.05
pigment{color Green}
finish{phong 1 reflection 0.1}
}
cone{<10,0,0>,0.3
<11.5,0,0>,0
pigment{color Green}
}
// X文字
cylinder{<-0.5,-0.5,0>,<0.5,0.5,0>,0.08
pigment{color Green}
finish{phong 1 reflection 0.1}
rotate y*90
translate <11.5,0.5,0>
}
cylinder{ <-0.5,0,0>, <0.5,-0.5,0>,0.08
pigment{color Green}
finish{phong 1 reflection 0.1}
rotate y*90
translate <11.5,0.5,0>
}

// Y軸
cylinder{<0,-5,0>,<0,4,0>,0.05
pigment{color Blue}
finish{phong 1 reflection 0.1}
}
cone{<0,4,0>,0.3
<0,5.5,0>,0
pigment{color Blue}
}
// Y文字
cylinder{<-0.5,0.5,0>,<0,0,0>,0.08
pigment{color Blue}
finish{phong 1 reflection 0.1}
translate <0,5.8,0>
}
cylinder{<0.5,0.5,0>,<0,0,0>,0.08
finish{phong 1 reflection 0.1}
translate <0,5.8,0>
}
cylinder{ <0,0,0>, <0,-0.5,0>,0.08
pigment{color Blue}
finish{phong 1 reflection 0.1}
translate <0,5.8,0>
}

//■■■拡大と縮小■■■

text {
ttf "timrom.ttf"
"rotate" 0.5,0
pigment { Goldenrod }
translate <1,0,0>
scale 1.5
}

text {
ttf "timrom.ttf"
"rotate y*-90" 0.5,0
pigment { Blue }
scale 1.5
translate <1,0,0>
rotate y*-90 //Y軸に回転
//拡大
}

text {
ttf "timrom.ttf"
"rotate x*180" 0.5,0
pigment { Green }
translate <1,0,0>
scale 1.5
rotate x*180 //X軸に回転
}

text {
ttf "timrom.ttf"
"rotate z*90" 0.5,0
pigment { Red }
translate <1,0,0>
scale 1.5
rotate z*90 //Z軸に回転
}

background{color White}


[ 目次に戻る ]