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

立体図形の拡大と縮小


サンプル coordi-scale00.pov

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

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

//カメラ設定
camera{
    location < 8,3,-20>
    look_at <8,4,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"
"scale<1>" 0.5,0
pigment { Red }
scale 1//1倍
translate <1,0,0>
}

text {
ttf "timrom.ttf"
"scale<x2>" 0.5,0
pigment { Blue }
scale 2//2倍拡大
translate <1,3,0>
//拡大
}

text {
ttf "timrom.ttf"
"scale<x4>" 0.5,0
pigment { Green }
scale 4//4倍拡大
translate <1,6,0>
}

background{color White}


[ 目次に戻る ]