public void When_prepare_computations_with_xs(string id, string rayId, string xs)
        {
            var i   = intersection[id].Value;
            var ixs = intersections[xs];
            var r   = ray[rayId];

            var comps = IntersectionTest.prepareComputations(r, i, ixs);

            hit[ComputationsId] = comps.hit;
        }
Ejemplo n.º 2
0
        public void When_prepare_computations_with_xs(int index, string rayId, string xs)
        {
            var ixs = intersections[xs];
            var i   = ixs[index];
            var r   = ray[rayId];

            var comps = IntersectionTest.prepareComputations(r, i, ixs);

            hit[ComputationsId]   = comps.hit;
            refractiveIndex["n1"] = comps.refractiveIndexEntering;
            refractiveIndex["n2"] = comps.refractiveIndexExiting;
        }