diff --git a/vcg/space/plane3.h b/vcg/space/plane3.h index 8ee8dbef..eeaee2bc 100644 --- a/vcg/space/plane3.h +++ b/vcg/space/plane3.h @@ -116,7 +116,14 @@ public: ScalarType k = p.dot(_dir) - _offset; return p - _dir * k; } - + + ///Mirror the point wrt the plane + PointType Mirror(const PointType &p) const { + PointType mirr=Projection(p); + mirr+=mirr-p; + return mirr; + } + /// Function to normalize direction void Normalize() { _dir.Normalize();