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