Răsfoiți Sursa

bug fixes per
Martin Bisson


Former-commit-id: e3bc54b15f8bba39e39b549dc12e0edade6fd7cf

Alec Jacobson (jalec 12 ani în urmă
părinte
comite
d0b39290b1

+ 1 - 1
include/igl/ReAntTweakBar.cpp

@@ -99,7 +99,7 @@ void igl::ReTwBar::TwNewBar(const char *name)
 {
   // double colon without anything in front of it means look for this in the
   // global namespace... I hope...
-  this->name = name;
+  //this->name = name;
   this->bar = ::TwNewBar(name);
 }
 

+ 2 - 1
include/igl/ReAntTweakBar.h

@@ -153,7 +153,8 @@ namespace igl
     // anytime AntTweakBar functions can be called directly on the bar
     public:
       TwBar * bar;
-	  std::string name;
+      // Alec: This causes trouble (not sure why)
+	  //std::string name;
     protected:
       std::vector<ReTwRWItem> rw_items;
       std::vector<ReTwCBItem> cb_items;

+ 1 - 1
include/igl/barycenter.cpp

@@ -5,7 +5,7 @@ IGL_INLINE void igl::barycenter(
   const Eigen::MatrixXi & F,
   Eigen::MatrixXd & BC)
 {
-  BC.resize(F.rows(),V.cols());
+  BC.setZero(F.rows(),V.cols());
   // Loop over faces
   for(int i = 0;i<F.rows();i++)
   {

+ 1 - 1
include/igl/doublearea.h

@@ -45,7 +45,7 @@ namespace igl
 }
 
 #ifdef IGL_HEADER_ONLY
-#  include "doublearea.h"
+#  include "doublearea.cpp"
 #endif
 
 #endif