diff --git a/src/OpenMesh/Core/Geometry/QuadricT.hh b/src/OpenMesh/Core/Geometry/QuadricT.hh index b211cc49c49e1c3e0994cfc1cbc5af96e2b0686b..fdec0c9c301bd4ab3cb0857f81b385c7ff5f3a9a 100644 --- a/src/OpenMesh/Core/Geometry/QuadricT.hh +++ b/src/OpenMesh/Core/Geometry/QuadricT.hh @@ -180,6 +180,12 @@ public: return *this; } + QuadricT<Scalar> operator+(const QuadricT<Scalar>& _other ) const + { + QuadricT<Scalar> result = *this; + return result += _other; + } + /// multiply by scalar QuadricT<Scalar>& operator*=( Scalar _s) @@ -191,6 +197,11 @@ public: return *this; } + QuadricT<Scalar> operator*(Scalar _s) const + { + QuadricT<Scalar> result = *this; + return result *= _s; + } /// multiply 4D vector from right: Q*v template <class _Vec4>