#VRML V2.0 utf8 #tetwo2.wrl #--------------------------------------- #設定 #--------------------------------------- #背景を設定する Background { groundColor 0.6 0.3 0.1 #地面の色 skyColor 0.5 0.8 1.0 #空の色 } #視点を設定する Viewpoint { #position 0.0 5.0 0.0 #視点の位置 #orientation 0.0 -1.0 0.0 0.0 position 0 10 10 #視点の位置 orientation 1 0 0 -0.78539816 #視線の方向 } #--------------------------------------- #車輪部品 #--------------------------------------- #車輪本体 PROTO Com_Wheel1part1 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Transform { rotation 1.0 0.0 0.0 1.5707963268 #X軸周りに回転 children [ Shape { geometry Cylinder { #円柱 height 0.0001 #厚さ radius 0.00025 #半径 } appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 #色 } } } #end Shape ] #end children } #end Transform ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #フランジ PROTO Com_Wheel1part2 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Transform { rotation 1.0 0.0 0.0 1.5707963268 #X軸周りに回転 children [ Shape { geometry Cylinder { #円柱 height 0.0005 #厚さ radius 0.003 #半径 } appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 #色 } } } #end Shape ] #end children } #end Transform ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #車軸 PROTO Com_Wheel1part3 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Transform { rotation 1.0 0.0 0.0 1.5707963268 #X軸周りに回転 children [ Shape { geometry Cylinder { #円柱 height 0.008 #厚さ radius 0.001 #半径 } appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 #色 } } } #end Shape ] #end children } #end Transform ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #車輪 #--------------------------------------- PROTO Com_Wheel1 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Com_Wheel1part1{ position 0 0.0025 -0.005 } Com_Wheel1part2{ position 0 0.0025 0.00425 } Com_Wheel1part3{ position 0 0.0025 0 } Transform { center 0 0 0 #回転中心 rotation 0 1 0 3.1415926 #回転軸と角度 children [ Com_Wheel1part1{ position 0 0.0025 0.005 } Com_Wheel1part2{ position 0 0.0025 0.00425 } ] } ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #車輪2組 #--------------------------------------- PROTO Com_Wheel2 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Com_Wheel1{ position -0.007 0 0 } Com_Wheel1{ position 0.007 0 0 } ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #車体部品 #--------------------------------------- #車体中央 PROTO KOKI10000_FRAMEpart1 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Shape { geometry Box { #直方体 size 0.118 0.001 0.014 #長さ、高さ、巾 } appearance Appearance { material Material { diffuseColor 0 0 0.5 #色 } } } ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #車体側面1/3 PROTO KOKI10000_FRAMEpart2 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Shape { geometry Box { #直方体 size 0.0215 0.002 0.0015 #長さ、高さ、巾 } appearance Appearance { material Material { diffuseColor 0 0 0.5 #色 } } } #end Shape ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #↓車体側面2/3 PROTO KOKI10000_FRAMEpart3 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Shape { geometry IndexedFaceSet { solid FALSE coord Coordinate { point [ -0.01 0 -0.00075, 0.01 0 -0.00075, 0.01 -0.005 -0.00075, -0.01 -0.002 -0.00075, -0.01 0 0.00075, 0.01 0 0.00075, 0.01 -0.005 0.00075, -0.01 -0.002 0.00075 ] } color Color { color [ 0 0 0.5 ] } coordIndex [ 0 1 2 -1 2 3 0 -1 4 5 6 -1 6 7 4 -1 0 4 7 -1 7 3 0 -1 1 5 6 -1 6 2 1 -1 0 1 5 -1 5 4 0 -1 3 2 6 -1 6 7 3 -1 ] colorIndex [ 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 ] } } ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #車体側面3/3 PROTO KOKI10000_FRAMEpart4 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Shape { geometry Box { #直方体 size 0.035 0.005 -0.0015 #長さ、高さ、巾 } appearance Appearance { material Material { diffuseColor 0 0 0.5 #色 } } } #end Shape ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #車体端面 PROTO KOKI10000_FRAMEpart5 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Shape { geometry Box { #直方体 size 0.0005 0.006 0.017 #長さ、高さ、巾 } appearance Appearance { material Material { diffuseColor 0 0 0.5 #色 } } } #end Shape ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #車体 #--------------------------------------- PROTO KOKI10000_FRAME [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ KOKI10000_FRAMEpart1{ position 0 0.008 0 } KOKI10000_FRAMEpart2{ position -0.04825 0.0075 0.00775 } KOKI10000_FRAMEpart2{ position -0.04825 0.0075 -0.00775 } KOKI10000_FRAMEpart3{ position -0.0275 0.0085 0.00775 } KOKI10000_FRAMEpart3{ position -0.0275 0.0085 -0.00775 } Transform { center 0 0 0 #回転中心 rotation 0 1 0 3.1415926 #回転軸と角度 children [ KOKI10000_FRAMEpart2{ position -0.04825 0.0075 0.00775 } KOKI10000_FRAMEpart2{ position -0.04825 0.0075 -0.00775 } KOKI10000_FRAMEpart3{ position -0.0275 0.0085 0.00775 } KOKI10000_FRAMEpart3{ position -0.0275 0.0085 -0.00775 } ] #end children } #end Transform KOKI10000_FRAMEpart4{ position 0 0.006 0.00775 } KOKI10000_FRAMEpart4{ position 0 0.006 -0.00775 } KOKI10000_FRAMEpart5{ position 0.05875 0.0115 0 } ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #コンテナ部品 #--------------------------------------- #↓コンテナ本体 PROTO Com_Contpart1 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Shape { geometry Box { #直方体 size 0.022 0.015 0.016 #長さ、高さ、巾 } appearance Appearance { material Material { diffuseColor 0 0.7 0 #色 } } } #end Shape ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #文字 PROTO Com_Contpart2 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Transform { children [ Shape { geometry Text { #文字 string ["GAGAARIN"] fontStyle FontStyle { justify "MIDDLE" style "BOLD" size 0.004 } } appearance Appearance { material Material { diffuseColor 0 0 0 #色 } } } #end Shape ] #end children } #end Transform ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #脚 PROTO Com_Contpart3 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Shape { geometry Box { #直方体 size 0.0038 0.001 -0.0038 #長さ、高さ、巾 } appearance Appearance { material Material { diffuseColor 0 0.7 0 #色 } } } #end Shape ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #コンテナ #--------------------------------------- PROTO Com_Cont [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Com_Contpart1{ position 0 0.0085 0 } Com_Contpart2{ position 0 0.0115 0.0081 } Com_Contpart3{ position -0.009 0.0005 0.006 } Com_Contpart3{ position -0.009 0.0005 -0.006 } Transform { center 0 0 0 #回転中心 rotation 0 1 0 3.1415926 #回転軸と角度 children [ Com_Contpart2{ position 0 0.0115 0.0081 } Com_Contpart3{ position -0.009 0.0005 0.006 } Com_Contpart3{ position -0.009 0.0005 -0.006 } ] #end children } #end Transform ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #コキ10000 #--------------------------------------- PROTO KOKI10000 [ field SFVec3f position 0 0 0 ] { #↓ここから Transform { translation IS position children [ Com_Wheel2{ position -0.044 0 0 } Com_Wheel2{ position 0.044 0 0 } KOKI10000_FRAME{ position 0 0 0 } Com_Cont{ position -0.046 0.0085 0 } Com_Cont{ position -0.023 0.0085 0 } Com_Cont{ position 0 0.0085 0 } Com_Cont{ position 0.023 0.0085 0 } Com_Cont{ position 0.046 0.0085 0 } ] #end children } #end Transform #↑ここまで } #end PROTO #--------------------------------------- #車両配置 #--------------------------------------- KOKI10000{ position 0 0 0 }