Example #1
0
        public override Vector2d GetUVCoordinates(IIntersectionResult intersectionResult)
        {
            CubeIntersectionResult cubeIntersectionResult = intersectionResult as CubeIntersectionResult;

            return(cubeIntersectionResult.TriangleObject.GetUVCoordinates(cubeIntersectionResult.QuadObjectIntersectionResult.TriangleObjectIntersectionResult));
        }
Example #2
0
        public override Color GetColor(Vector3d direction, IIntersectionResult intersectionResult, Scene scene)
        {
            CubeIntersectionResult cubeIntersectionResult = intersectionResult as CubeIntersectionResult;

            return(cubeIntersectionResult.TriangleObject.GetColor(direction, cubeIntersectionResult.QuadObjectIntersectionResult.TriangleObjectIntersectionResult, scene));
        }
Example #3
0
        public override Vector3d GetNormal(IIntersectionResult intersectionResult)
        {
            CubeIntersectionResult cubeIntersectionResult = intersectionResult as CubeIntersectionResult;

            return(cubeIntersectionResult.TriangleObject.GetNormal(cubeIntersectionResult.QuadObjectIntersectionResult.TriangleObjectIntersectionResult));
        }