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) }
public void Dispose() { if (this.IntersectionDevice != null) { this.IntersectionDevice.Stop(); this.IntersectionDevice.Dispose(); this.IntersectionDevice = null; } }