#VRML V2.0 utf8

NAME wittiggroen PhBLxySpectrum { xy 0.333330 0.333330 }
NAME geelwit PhBLxySpectrum { xy 0.337000 0.337000 }
NAME wittigrood PhBLxySpectrum { xy 0.333330 0.333330 }
NAME wittigblauw PhBLxySpectrum { xy 0.333330 0.333330 }
NAME blauw PhBLxySpectrum { xy 0.260000 0.260000 }
NAME groen PhBLxySpectrum { xy 0.000000 0.380000 }
NAME geel PhBLxySpectrum { xy 0.376563 0.395833 }
NAME rood PhBLxySpectrum { xy 0.500000 0.300000 }
NAME wit PhBLxySpectrum { xy 0.333333 0.333333 }

PROTO PhongAppearance [
 exposedField SFNode cd NULL
 exposedField SFFloat rd 0.
 exposedField SFNode cs NULL
 exposedField SFFloat rs 0.
 exposedField SFFloat sharpness 0.
] {
   PhBAppearance {
      surface PhBHomogeneousSurface {
	 bsdf [ PhBSimpleBSDF {
	    intensity IS rd
	    spectrum IS cd
	    scatterer PhBDiffuseReflector {}
	 } , PhBSimpleBSDF {
	    intensity IS rs
	    spectrum IS cs
	    scatterer PhBPhongReflector { sharpness IS sharpness }
	 } ]
      }
   }
}

NAME Bovenlicht PhBAppearance {
   surface PhBHomogeneousSurface {
      edf PhBEDF {
	 intensity 200000
	 spectrum USE geelwit
	 emitter PhBDiffuseEmitter {}
      }
   }
}

NAME Groen PhongAppearance {
   cd USE groen
   rd 0.086
   cs USE wittiggroen
   rs 0.03 sharpness 1000
}

NAME Geel PhongAppearance {
   cd USE geel
   rd 0.86
   cs USE geel
   rs 0.19 sharpness 3600
}

NAME Rood PhongAppearance {
   cd USE rood
   rd 0.10
   cs USE wittigrood
   rs 0.4 sharpness 22500
}

NAME Bluaw PhongAppearance {
   cd USE blauw
   rd 0.065
   cs USE wittigblauw
   rs 0.24 sharpness 22500
}

NAME Plafondwit PhongAppearance {
   rd 0.6
   rs 0.2 sharpness 1000
}

NAME Achterwit PhongAppearance {
   rd 0.75
   rs 0.1 sharpness 750
}

NAME Vloer PhongAppearance {
   rd 0.6
   rs 0.4 sharpness 3600
}

PROTO QuadFace [
 exposedField MFVec3f points [ ]
] {
   IndexedFaceSet {
      coord Coordinate {
	 point IS points
      }
      coordIndex [ 0 1 2 3 ]
      colorPerVertex FALSE
      normalPerVertex FALSE
      solid FALSE
   }
}

PROTO TransformedBox [
 exposedField MFVec3f points [ ]
] {
   IndexedFaceSet {
      coord Coordinate {
	 point IS points
      }
      coordIndex [ 0 3 5 7 -1
		   0 7 6 1 -1
		   7 5 4 6 -1
		   1 6 4 2 -1
		   2 4 5 3 -1
		   0 1 2 3 -1 ]
   }
}

Viewpoint {
  position 5 5 12.5
  orientation 0 0 1 0
  fieldOfView 0.785398
  description "ViewPoint 1"
}

Transform {
   rotation -1 0 0 1.5708    # make Z point up
   children [
      Shape {
	 geometry QuadFace { points 
	    [ 0.000000 0.000000 0.000000 ,
	      10.000000 0.000000 0.000000 ,
	      10.000000 9.800000 0.000000 ,
	      0.000000 9.800000 0.000000 ] 
	 }
	 appearance USE Vloer
      }
      Shape {
	 geometry QuadFace { points
	    [ 0.000000 9.800000 0.00000 ,
	      10.000000 9.800000 0.000000 ,
	      10.000000 9.800000 10.000000 ,
	      0.000000 9.800000 10.000000 ]
	 }
	 appearance USE Achterwit
      }
      Shape {
	 geometry QuadFace { points
	    [ 10.000000 0.000000 10.00000 ,
	      0.000000 0.000000 10.000001 ,
	      0.000000 9.800000 10.000001 ,
	      10.000000 9.800000 10.000000 ]
	 }
	 appearance USE Plafondwit
      }
      Shape {
	 geometry QuadFace { points
	    [ 0.000000 0.000000 0.000000 ,
	      0.000000 9.800000 0.000000 ,
	      0.000000 9.800000 10.000000 ,
	      0.000000 0.000000 10.000000 ]
	 }
	 appearance USE Bluaw
      }
      Shape {
	 geometry QuadFace { points
	    [ 10.000000 0.000000 0.000000 ,
	      10.000000 0.000000 10.000000 ,
	      10.000000 9.800000 10.000000 ,
	      10.000000 9.800000 0.000000 ]
	 }
	 appearance USE Rood
      }
      Shape {
	 geometry TransformedBox { points
	    [ 9.200000 5.950000 3.160000
	      6.463360 7.530000 3.160000
	      4.963359 4.931924 3.160000
	      7.700000 3.351924 3.160000
	      4.963359 4.931924 0.000000
	      7.700000 3.351924 0.000000
	      6.463360 7.530000 0.000000
	      9.200000 5.950000 0.000000 ]
	 }
	 appearance USE Geel
     }
     Shape {
	geometry TransformedBox { points 
	    [ 0.550000 7.560000 6.080000
	      2.451736 5.036312 6.080000
	      4.975424 6.938048 6.080000
	      3.073688 9.461736 6.080000
	      4.975424 6.938048 0.000000
	      3.073688 9.461736 0.000000
	      2.451736 5.036312 0.000000
	      0.550000 7.560000 0.000000 ]
	 }
	 appearance USE Groen
      }
      Shape {
	 geometry QuadFace { points
	    [ 4.400000 5.400000 9.990000 ,
	      5.400000 5.400000 9.990000 ,
	      5.400000 4.400000 9.990000 ,
	      4.400000 4.400000 9.990000 ]
	 }
	 appearance USE Bovenlicht
      }
   ]
}
