Esempio n. 1
0
        // This was used for making some images "beyond infinity" (paper appendix).
        //private static double m_jOffset;

        /// <summary>
        /// Inputs must be in UHS!
        /// </summary>
        public static void PrepForFacetCentering(int p, int q, Sphere[] spheres, ref Vector3D cellCenter)
        {
            Mobius m = FCOrientMobius(p, q);

            foreach (Sphere s in spheres)
            {
                H3Models.TransformInUHS2(s, m);
            }

            spheres[3].Center *= -1;             // Super-hack for 437 & 737, since TransformInUHS2 function is falling short.
            //spheres[2].Center *= -1;

            cellCenter = m.ApplyToQuaternion(cellCenter);
        }