@@ -54,7 +54,7 @@ igl::matlab_format(
if(!name.empty())
{
prefix = name + "IJV = ";
- suffix = "\n"+name + " = sparse("+name+"IJV(:,1),"+name+"IJV(:,2),"+name+"IJV(:,3));";
+ suffix = "\n"+name + " = sparse("+name+"IJV(:,1),"+name+"IJV(:,2),"+name+"IJV(:,3),"+std::to_string(S.rows())+","+std::to_string(S.cols())+" );";
}
return STR(""<<
SIJV.format(Eigen::IOFormat(
@@ -23,7 +23,7 @@ void igl::polyvector_field_one_ring_matchings(const Eigen::PlainObjectBase<Deriv
mvi.resize(VF[vi].size()+1,1);
fi.resize(VF[vi].size()+1,1);
//start from one face
- const int &fstart = VF[vi][0];
+ const int fstart = VF[vi][0];
int current_face = fstart;
int i =0;
mvi[i] = vector_to_match;
@@ -59,7 +59,7 @@ IGL_INLINE void igl::slice_into(
int xn = X.cols();
#ifndef NDEBUG
assert(R.size() == xm);
- assert(C.size() == xn);
+// assert(C.size() == xn);
int ym = Y.size();
int yn = Y.size();
assert(R.minCoeff() >= 0);