unuseful copy constructor box - deleted trackball assignment operator

This commit is contained in:
alemuntoni 2020-05-20 15:59:46 +02:00
parent f2ce7bdf69
commit 0caaf49d37
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ public:
/// The bounding box constructor
inline Box3() { this->SetNull(); }
/// Copy constructor
inline Box3( const Box3 & b ) { min=b.min; max=b.max; }
//inline Box3( const Box3 & b ) { min=b.min; max=b.max; }
/// Min Max constructor
inline Box3( const Point3<BoxScalarType> & mi, const Point3<BoxScalarType> & ma ) { min = mi; max = ma; }
/// Point Radius Constructor

View File

@ -202,7 +202,7 @@ public:
private:
// Trackball must not be copied. Use Append (see vcg/complex/trimesh/append.h)
Trackball operator =(const Trackball & /*m*/){ assert(0); return *this; }
Trackball operator =(const Trackball & /*m*/) = delete;
public:
/*!
@brief Reset the trackball.