public void CreateHeuristic() { if (m_errorQuadric == M44d.Zero) { throw new InvalidOperationException("Must call CreateQuadric(...) first"); } m_errorHeuristic = Quadric.ToHeuristic(ErrorQuadric); }
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); }