2001年7月23日新規
  関谷トップページへ 総合制作実習2001トップへ   戻る(No.4 集中実習の進め方へ)  

C306_room.wrl 床と壁のC306

このwrlファイルを実行する(ブラウザのvrmlプラグインで見る)
VRML V2.0 utf8
# C306_room.wrl 床と壁のC306
# 2001.7.23 KPC SPIT sekiya
# 参照は、The VRML 2.0 Sourcebook Figure 5.10 archway
#			 using 多変換座標系(xは東向き、yは上向、zは南向き)

Group {
    children [
        Transform {
            translation 7.25 -0.1 5.25
    # Floor(床)
	        children Shape {
    	        appearance DEF Red Appearance {
        	        material Material {
	        	        diffuseColor 0.8 0.0 0.8
	            	}
            	}
            	geometry Box {
                	size 14.5 0.2 17.5
            	}
        	}
      	},
    # west wall(西壁、廊下との壁)
        Transform {
            translation 2.6 1.6 3.5
            children DEF Wall_sn Shape {
	            appearance DEF White Appearance {
    	            material Material { }
	            }
                geometry Box {
	                size 0.2 3.0 7.2
                }
            }
        },
    # east wall(東壁、窓側の外壁)
        Transform {
            translation 14.5 1.6 3.5
            children USE Wall_sn
        }, 

    # north wall(北壁、c331側の壁)
        Transform {
            translation 8.5 1.6 0.0
            children DEF Wall_ew Shape {
                appearance USE White
                geometry Box {
	                size 12.0 3.0 0.2
                }
            }
        },
    # south wall(南壁、c302側の壁)
        Transform {
            translation 8.5 1.6 7.0
            children USE Wall_ew
        }
    ]
}