소스 검색

no message

Former-commit-id: 74895e8190fa03bd4797c7a54a6d18bef637c656
Olga Diamanti 10 년 전
부모
커밋
919947748c
4개의 변경된 파일46개의 추가작업 그리고 42개의 파일을 삭제
  1. 41 39
      include/igl/comiso/miq.cpp
  2. 3 3
      include/igl/comiso/miq.h
  3. 1 0
      include/igl/slice.cpp
  4. 1 0
      include/igl/writeOFF.cpp

+ 41 - 39
include/igl/comiso/miq.cpp

@@ -202,12 +202,12 @@ namespace igl {
     const Eigen::PlainObjectBase<DerivedF> &F;
     const Eigen::PlainObjectBase<DerivedF> &TT;
     const Eigen::PlainObjectBase<DerivedF> &TTi;
-    const Eigen::PlainObjectBase<DerivedV> &PD1;
-    const Eigen::PlainObjectBase<DerivedV> &PD2;
+    // const Eigen::PlainObjectBase<DerivedV> &PD1;
+    // const Eigen::PlainObjectBase<DerivedV> &PD2;
 
     const Eigen::Matrix<int, Eigen::Dynamic, 3> &Handle_MMatch;
-    const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_Singular; // bool
-    const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_SingularDegree; // vertex;
+    // const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_Singular; // bool
+    // const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_SingularDegree; // vertex;
     const Eigen::Matrix<int, Eigen::Dynamic, 3> &Handle_Seams; // 3 bool
 
 
@@ -232,11 +232,11 @@ namespace igl {
                    const Eigen::PlainObjectBase<DerivedF> &_F,
                    const Eigen::PlainObjectBase<DerivedF> &_TT,
                    const Eigen::PlainObjectBase<DerivedF> &_TTi,
-                   const Eigen::PlainObjectBase<DerivedV> &_PD1,
-                   const Eigen::PlainObjectBase<DerivedV> &_PD2,
+                  //  const Eigen::PlainObjectBase<DerivedV> &_PD1,
+                  //  const Eigen::PlainObjectBase<DerivedV> &_PD2,
                    const Eigen::Matrix<int, Eigen::Dynamic, 3> &_Handle_MMatch,
-                   const Eigen::Matrix<int, Eigen::Dynamic, 1> &_Handle_Singular,
-                   const Eigen::Matrix<int, Eigen::Dynamic, 1> &_Handle_SingularDegree,
+                  //  const Eigen::Matrix<int, Eigen::Dynamic, 1> &_Handle_Singular,
+                  //  const Eigen::Matrix<int, Eigen::Dynamic, 1> &_Handle_SingularDegree,
                    const Eigen::Matrix<int, Eigen::Dynamic, 3> &_Handle_Seams
                    );
 
@@ -543,11 +543,11 @@ namespace igl {
               const Eigen::PlainObjectBase<DerivedF> &F_,
               const Eigen::PlainObjectBase<DerivedV> &PD1_combed,
               const Eigen::PlainObjectBase<DerivedV> &PD2_combed,
-              const Eigen::PlainObjectBase<DerivedV> &BIS1_combed,
-              const Eigen::PlainObjectBase<DerivedV> &BIS2_combed,
+              // const Eigen::PlainObjectBase<DerivedV> &BIS1_combed,
+              // const Eigen::PlainObjectBase<DerivedV> &BIS2_combed,
               const Eigen::Matrix<int, Eigen::Dynamic, 3> &Handle_MMatch,
               const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_Singular,
-              const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_SingularDegree,
+              // const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_SingularDegree,
               const Eigen::Matrix<int, Eigen::Dynamic, 3> &Handle_Seams,
               Eigen::PlainObjectBase<DerivedU> &UV,
               Eigen::PlainObjectBase<DerivedF> &FUV,
@@ -613,11 +613,11 @@ IGL_INLINE igl::VertexIndexing<DerivedV, DerivedF>::VertexIndexing(const Eigen::
                                                         const Eigen::PlainObjectBase<DerivedF> &_F,
                                                         const Eigen::PlainObjectBase<DerivedF> &_TT,
                                                         const Eigen::PlainObjectBase<DerivedF> &_TTi,
-                                                        const Eigen::PlainObjectBase<DerivedV> &_PD1,
-                                                        const Eigen::PlainObjectBase<DerivedV> &_PD2,
+                                                        // const Eigen::PlainObjectBase<DerivedV> &_PD1,
+                                                        // const Eigen::PlainObjectBase<DerivedV> &_PD2,
                                                         const Eigen::Matrix<int, Eigen::Dynamic, 3> &_Handle_MMatch,
-                                                        const Eigen::Matrix<int, Eigen::Dynamic, 1> &_Handle_Singular,
-                                                        const Eigen::Matrix<int, Eigen::Dynamic, 1> &_Handle_SingularDegree,
+                                                        // const Eigen::Matrix<int, Eigen::Dynamic, 1> &_Handle_Singular,
+                                                        // const Eigen::Matrix<int, Eigen::Dynamic, 1> &_Handle_SingularDegree,
                                                         const Eigen::Matrix<int, Eigen::Dynamic, 3> &_Handle_Seams
 
                                                         ):
@@ -625,11 +625,11 @@ V(_V),
 F(_F),
 TT(_TT),
 TTi(_TTi),
-PD1(_PD1),
-PD2(_PD2),
+// PD1(_PD1),
+// PD2(_PD2),
 Handle_MMatch(_Handle_MMatch),
-Handle_Singular(_Handle_Singular),
-Handle_SingularDegree(_Handle_SingularDegree),
+// Handle_Singular(_Handle_Singular),
+// Handle_SingularDegree(_Handle_SingularDegree),
 Handle_Seams(_Handle_Seams)
 {
 
@@ -747,9 +747,9 @@ IGL_INLINE void igl::VertexIndexing<DerivedV, DerivedF>::FindInitialPos(const in
     if (!vertexB)
       //seam=curr_f->IsSeam(next_f);
       seam=IsSeam(curr_f,next_f);
-    if (vertexB)
-      assert(!Handle_Singular(vert));
-    ;
+    // if (vertexB)
+      // assert(!Handle_Singular(vert));
+    // ;
     //assert(!vert->IsSingular());
     possible_split=((on_border)||(seam));
     complete_turn = next_f == f_init;
@@ -1831,11 +1831,11 @@ IGL_INLINE igl::MIQ_class<DerivedV, DerivedF, DerivedU>::MIQ_class(const Eigen::
                                                         const Eigen::PlainObjectBase<DerivedF> &F_,
                                                         const Eigen::PlainObjectBase<DerivedV> &PD1_combed,
                                                         const Eigen::PlainObjectBase<DerivedV> &PD2_combed,
-                                                        const Eigen::PlainObjectBase<DerivedV> &BIS1_combed,
-                                                        const Eigen::PlainObjectBase<DerivedV> &BIS2_combed,
+                                                        // const Eigen::PlainObjectBase<DerivedV> &BIS1_combed,
+                                                        // const Eigen::PlainObjectBase<DerivedV> &BIS2_combed,
                                                         const Eigen::Matrix<int, Eigen::Dynamic, 3> &Handle_MMatch,
                                                         const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_Singular,
-                                                        const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_SingularDegree,
+                                                        // const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_SingularDegree,
                                                         const Eigen::Matrix<int, Eigen::Dynamic, 3> &Handle_Seams,
                                                         Eigen::PlainObjectBase<DerivedU> &UV,
                                                         Eigen::PlainObjectBase<DerivedF> &FUV,
@@ -1854,7 +1854,7 @@ F(F_)
   igl::triangle_triangle_adjacency(V,F,TT,TTi);
 
   // Prepare indexing for the linear system
-  VertexIndexing<DerivedV, DerivedF> VInd(V, F, TT, TTi, BIS1_combed, BIS2_combed, Handle_MMatch, Handle_Singular, Handle_SingularDegree, Handle_Seams);
+  VertexIndexing<DerivedV, DerivedF> VInd(V, F, TT, TTi, /*BIS1_combed, BIS2_combed,*/ Handle_MMatch, /*Handle_Singular, Handle_SingularDegree,*/ Handle_Seams);
 
   VInd.InitMapping();
   VInd.InitFaceIntegerVal();
@@ -1862,8 +1862,8 @@ F(F_)
 
   Eigen::PlainObjectBase<DerivedV> PD1_combed_for_poisson, PD2_combed_for_poisson;
   // Rotate by 90 degrees CCW
-  PD1_combed_for_poisson.setZero(BIS1_combed.rows(),3);
-  PD2_combed_for_poisson.setZero(BIS2_combed.rows(),3);
+  PD1_combed_for_poisson.setZero(PD1_combed.rows(),3);
+  PD2_combed_for_poisson.setZero(PD2_combed.rows(),3);
   for (unsigned i=0; i<PD1_combed.rows();++i)
   {
     double n1 = PD1_combed.row(i).norm();
@@ -1892,7 +1892,7 @@ F(F_)
                                             PD1_combed_for_poisson,
                                             PD2_combed_for_poisson,
                                             VInd.HandleS_Index,
-                                            VInd.Handle_Singular,
+                                            /*VInd.Handle_Singular*/Handle_Singular,
                                             VInd.Handle_SystemInfo);
   Handle_Stiffness = Eigen::VectorXd::Constant(F.rows(),1);
 
@@ -2170,11 +2170,11 @@ IGL_INLINE void igl::miq(const Eigen::PlainObjectBase<DerivedV> &V,
                          const Eigen::PlainObjectBase<DerivedF> &F,
                          const Eigen::PlainObjectBase<DerivedV> &PD1_combed,
                          const Eigen::PlainObjectBase<DerivedV> &PD2_combed,
-                         const Eigen::PlainObjectBase<DerivedV> &BIS1_combed,
-                         const Eigen::PlainObjectBase<DerivedV> &BIS2_combed,
+                        //  const Eigen::PlainObjectBase<DerivedV> &BIS1_combed,
+                        //  const Eigen::PlainObjectBase<DerivedV> &BIS2_combed,
                          const Eigen::Matrix<int, Eigen::Dynamic, 3> &Handle_MMatch,
                          const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_Singular,
-                         const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_SingularDegree,
+                        //  const Eigen::Matrix<int, Eigen::Dynamic, 1> &Handle_SingularDegree,
                          const Eigen::Matrix<int, Eigen::Dynamic, 3> &Handle_Seams,
                          Eigen::PlainObjectBase<DerivedU> &UV,
                          Eigen::PlainObjectBase<DerivedF> &FUV,
@@ -2193,11 +2193,11 @@ IGL_INLINE void igl::miq(const Eigen::PlainObjectBase<DerivedV> &V,
                                                    F,
                                                    PD1_combed,
                                                    PD2_combed,
-                                                   BIS1_combed,
-                                                   BIS2_combed,
+                                                  //  BIS1_combed,
+                                                  //  BIS2_combed,
                                                    Handle_MMatch,
                                                    Handle_Singular,
-                                                   Handle_SingularDegree,
+                                                  //  Handle_SingularDegree,
                                                    Handle_Seams,
                                                    UV,
                                                    FUV,
@@ -2259,11 +2259,11 @@ IGL_INLINE void igl::miq(const Eigen::PlainObjectBase<DerivedV> &V,
            F,
            PD1_combed,
            PD2_combed,
-           BIS1_combed,
-           BIS2_combed,
+          //  BIS1_combed,
+          //  BIS2_combed,
            Handle_MMatch,
            isSingularity,
-           singularityIndex,
+          //  singularityIndex,
            Handle_Seams,
            UV,
            FUV,
@@ -2280,5 +2280,7 @@ IGL_INLINE void igl::miq(const Eigen::PlainObjectBase<DerivedV> &V,
 
 #ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
-template void igl::miq<Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Matrix<int, -1, 3, 0, -1, 3>, Eigen::Matrix<double, -1, 2, 0, -1, 2> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 2, 0, -1, 2> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> >&, double, double, bool, int, int, bool, std::__1::vector<int, std::__1::allocator<int> >, std::__1::vector<std::__1::vector<int, std::__1::allocator<int> >, std::__1::allocator<std::__1::vector<int, std::__1::allocator<int> > > >);
+// template void igl::miq<Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Matrix<int, -1, 3, 0, -1, 3>, Eigen::Matrix<double, -1, 2, 0, -1, 2> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 2, 0, -1, 2> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> >&, double, double, bool, int, int, bool, std::__1::vector<int, std::__1::allocator<int> >, std::__1::vector<std::__1::vector<int, std::__1::allocator<int> >, std::__1::allocator<std::__1::vector<int, std::__1::allocator<int> > > >);
+// template void igl::miq<Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Matrix<int, -1, 3, 0, -1, 3>, Eigen::Matrix<double, -1, 2, 0, -1, 2> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::Matrix<int, -1, 3, 0, -1, 3> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 2, 0, -1, 2> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> >&, double, double, bool, int, int, bool, std::__1::vector<int, std::__1::allocator<int> >, std::__1::vector<std::__1::vector<int, std::__1::allocator<int> >, std::__1::allocator<std::__1::vector<int, std::__1::allocator<int> > > >);
+template void igl::miq<Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Matrix<int, -1, 3, 0, -1, 3>, Eigen::Matrix<double, -1, 2, 0, -1, 2> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::Matrix<int, -1, 3, 0, -1, 3> const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, Eigen::Matrix<int, -1, 3, 0, -1, 3> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 2, 0, -1, 2> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> >&, double, double, bool, int, int, bool, std::__1::vector<int, std::__1::allocator<int> >, std::__1::vector<std::__1::vector<int, std::__1::allocator<int> >, std::__1::allocator<std::__1::vector<int, std::__1::allocator<int> > > >);
 #endif

+ 3 - 3
include/igl/comiso/miq.h

@@ -72,11 +72,11 @@ namespace igl
                                               const Eigen::PlainObjectBase<DerivedF> &F,
                                               const Eigen::PlainObjectBase<DerivedV> &PD1_combed,
                                               const Eigen::PlainObjectBase<DerivedV> &PD2_combed,
-                                              const Eigen::PlainObjectBase<DerivedV> &BIS1_combed,
-                                              const Eigen::PlainObjectBase<DerivedV> &BIS2_combed,
+                                              // const Eigen::PlainObjectBase<DerivedV> &BIS1_combed,
+                                              // const Eigen::PlainObjectBase<DerivedV> &BIS2_combed,
                                               const Eigen::Matrix<int, Eigen::Dynamic, 3> &MMatch,
                                               const Eigen::Matrix<int, Eigen::Dynamic, 1> &Singular,
-                                              const Eigen::Matrix<int, Eigen::Dynamic, 1> &SingularDegree,
+                                              // const Eigen::Matrix<int, Eigen::Dynamic, 1> &SingularDegree,
                                               const Eigen::Matrix<int, Eigen::Dynamic, 3> &Seams,
                                               Eigen::PlainObjectBase<DerivedU> &UV,
                                               Eigen::PlainObjectBase<DerivedF> &FUV,

+ 1 - 0
include/igl/slice.cpp

@@ -205,4 +205,5 @@ template void igl::slice<std::__1::complex<double> >(Eigen::SparseMatrix<std::__
 template void igl::slice<Eigen::Matrix<double, -1, 3, 0, -1, 3> >(Eigen::Matrix<double, -1, 3, 0, -1, 3> const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, int, Eigen::Matrix<double, -1, 3, 0, -1, 3>&);
 template Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > igl::slice<Eigen::Matrix<double, -1, 1, 0, -1, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&);
 template Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > igl::slice<Eigen::Matrix<double, -1, 3, 0, -1, 3> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, int);
+template Eigen::PlainObjectBase<Eigen::Matrix<double, 1, -1, 1, 1, -1> > igl::slice<Eigen::Matrix<double, 1, -1, 1, 1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, 1, -1, 1, 1, -1> > const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, int);
 #endif

+ 1 - 0
include/igl/writeOFF.cpp

@@ -55,4 +55,5 @@ template bool igl::writeOFF<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Mat
 template bool igl::writeOFF<Eigen::Matrix<double, -1, 3, 1, -1, 3>, Eigen::Matrix<unsigned int, -1, -1, 1, -1, -1> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 1, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<unsigned int, -1, -1, 1, -1, -1> > const&);
 template bool igl::writeOFF<Eigen::Matrix<float, -1, 3, 1, -1, 3>, Eigen::Matrix<unsigned int, -1, -1, 1, -1, -1> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Eigen::PlainObjectBase<Eigen::Matrix<float, -1, 3, 1, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<unsigned int, -1, -1, 1, -1, -1> > const&);
 template bool igl::writeOFF<Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Matrix<int, -1, 3, 0, -1, 3> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> > const&);
+template bool igl::writeOFF<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, 3, 0, -1, 3> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> > const&);
 #endif