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

立体図形の平行移動


サンプル coordi-translate00.pov

coordi-translate00.pov

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

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

//カメラ設定
camera{
    location < 5,3,-16>
    look_at <5.5,2,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"
"translat <0,0,0>" 1,0
pigment { Red }
scale 1.5
//原点に作られる
}

text {
ttf "timrom.ttf"
"translat <0,0+3,0>" 1,0
pigment { Red }
scale 1.5
translate <0,0+3,0> //平行移動
}

background{color White}


[ 目次に戻る ]