예제 #1
0
파일: Scene.cs 프로젝트: war-man/SharpRT
        /// <summary>
        /// Performs an intersection query on this scene.
        /// </summary>
        /// <param name="ray">The ray structure to use.</param>
        public unsafe void Intersection(RayStruct1 *ray)
        {
            #if DEBUG
            CheckDisposed();

            if (!AlgorithmFlags.HasFlag(AlgorithmFlags.Intersect1))
            {
                throw new InvalidOperationException("AlgorithmFlags.Intersect1 not set.");
            }
            #endif

            RTC.Intersect(NativePtr, ray);
        }