Example #1
0
        public void Initialize()
        {
            if (this.Scene == null)
            {
                throw new ArgumentException("Scene is not initialized.");
            }

            this.IntersectionDevice =
                //new OpenClIntersectionDevice(scene, true, 0);
                new MegarayIntersectionDevice(Scene, null);
            //this.ImagingDevice = new ImageDevice(this.En)

        }
Example #2
0
 public void Dispose()
 {
     if (this.IntersectionDevice != null)
     {
         this.IntersectionDevice.Stop();
         this.IntersectionDevice.Dispose();
         this.IntersectionDevice = null;
     }
 }