Pārlūkot izejas kodu

missing constructor implementations

Former-commit-id: 3da95c77dfef09630891534f4efa430c75b758f2
Alec Jacobson 9 gadi atpakaļ
vecāks
revīzija
eb03f673ef
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      include/igl/boolean/CSGTree.h

+ 10 - 0
include/igl/boolean/CSGTree.h

@@ -43,13 +43,23 @@ namespace igl
         //typedef Eigen::MatrixXi POBF;
         // http://stackoverflow.com/a/3279550/148668
         CSGTree(const CSGTree & other)
+          :
           // copy things
+          m_V(other.m_V),
+          m_F(other.m_F),
+          m_J(other.m_J),
+          m_number_of_birth_faces(other.m_number_of_birth_faces)
         {
         }
         // copy-swap idiom
         friend void swap(CSGTree& first, CSGTree& second)
         {
           using std::swap;
+          // swap things
+          swap(first.m_V,second.m_V);
+          swap(first.m_F,second.m_F);
+          swap(first.m_J,second.m_J);
+          swap(first.m_number_of_birth_faces,second.m_number_of_birth_faces);
         }
         // Pass-by-value (aka copy)
         CSGTree& operator=(CSGTree other)