@@ -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);
}
@@ -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;
@@ -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++)
@@ -45,7 +45,7 @@ namespace igl
#ifdef IGL_HEADER_ONLY
-# include "doublearea.h"
+# include "doublearea.cpp"
#endif