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