예제 #1
0
        public void CreateHeuristic()
        {
            if (m_errorQuadric == M44d.Zero)
            {
                throw new InvalidOperationException("Must call CreateQuadric(...) first");
            }

            m_errorHeuristic = Quadric.ToHeuristic(ErrorQuadric);
        }
예제 #2
0
        public static Quadric operator +(Quadric lhs, Quadric rhs)
        {
            Quadric result = new Quadric();

            result.ErrorQuadric = lhs.ErrorQuadric + rhs.ErrorQuadric;
            result.Normal       = lhs.Normal + rhs.Normal;

            result.ErrorHeuristic = Quadric.ToHeuristic(result.ErrorQuadric);

            return(result);
        }