Exemple #1
0
        private bool check_bounding_box_incidence(Ray r, IRenderableBody b, out double dist_estimate)
        {
            double[] bounds = new double[]
            {
                b.XminGlobal,
                b.XmaxGlobal,
                b.YminGlobal,
                b.YmaxGlobal,
                b.ZminGlobal,
                b.ZmaxGlobal
            };
            Triple null1, null2;

            return(Utils.CheckBoxIncidence(r, bounds, out null1, out null2, out dist_estimate));
        }
Exemple #2
0
 public void AddBody(IRenderableBody body)
 {
     bodies.Add(body);
 }