コード例 #1
0
 public abstract Vector3d GetNormal(IIntersectionResult intersectionResult);
コード例 #2
0
        public override Vector2d GetUVCoordinates(IIntersectionResult intersectionResult)
        {
            CubeIntersectionResult cubeIntersectionResult = intersectionResult as CubeIntersectionResult;

            return(cubeIntersectionResult.TriangleObject.GetUVCoordinates(cubeIntersectionResult.QuadObjectIntersectionResult.TriangleObjectIntersectionResult));
        }
コード例 #3
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));
        }
コード例 #4
0
        public override Vector3d GetNormal(IIntersectionResult intersectionResult)
        {
            CubeIntersectionResult cubeIntersectionResult = intersectionResult as CubeIntersectionResult;

            return(cubeIntersectionResult.TriangleObject.GetNormal(cubeIntersectionResult.QuadObjectIntersectionResult.TriangleObjectIntersectionResult));
        }
コード例 #5
0
 public override Vector3d GetNormal(IIntersectionResult intersectionResult)
 {
     return(_normal);
 }
コード例 #6
0
        public override Color GetColor(Vector3d direction, IIntersectionResult intersectionResult, Scene scene)
        {
            QuadIntersectionResult quadIntersectionResult = intersectionResult as QuadIntersectionResult;

            return(quadIntersectionResult.TriangleObjectIntersectionResult.Object.GetColor(direction, quadIntersectionResult.TriangleObjectIntersectionResult, scene));
        }
コード例 #7
0
        public override Vector2d GetUVCoordinates(IIntersectionResult intersectionResult)
        {
            QuadIntersectionResult quadIntersectionResult = intersectionResult as QuadIntersectionResult;

            return(quadIntersectionResult.TriangleObjectIntersectionResult.Object.GetUVCoordinates(quadIntersectionResult.TriangleObjectIntersectionResult));
        }
コード例 #8
0
        public override Vector3d GetNormal(IIntersectionResult intersectionResult)
        {
            QuadIntersectionResult quadIntersectionResult = intersectionResult as QuadIntersectionResult;

            return(quadIntersectionResult.TriangleObjectIntersectionResult.Object.GetNormal(quadIntersectionResult.TriangleObjectIntersectionResult));
        }