|
@@ -21,7 +21,10 @@ IGL_INLINE void igl::per_vertex_point_to_plane_quadrics(
|
|
|
|
|
|
|
|
|
|
quadrics.resize(
|
|
quadrics.resize(
|
|
- V.rows(),{Eigen::MatrixXd::Zero(dim,dim),Eigen::RowVectorXd::Zero(dim),0});
|
|
+ V.rows(),
|
|
|
|
+
|
|
|
|
+ (Quadric)
|
|
|
|
+ {Eigen::MatrixXd::Zero(dim,dim),Eigen::RowVectorXd::Zero(dim),0});
|
|
Eigen::MatrixXd I = Eigen::MatrixXd::Identity(dim,dim);
|
|
Eigen::MatrixXd I = Eigen::MatrixXd::Identity(dim,dim);
|
|
|
|
|
|
|
|
|
|
@@ -76,7 +79,9 @@ IGL_INLINE void igl::per_vertex_point_to_plane_quadrics(
|
|
b += p.dot(ei)*ei;
|
|
b += p.dot(ei)*ei;
|
|
c += -pow(p.dot(ei),2);
|
|
c += -pow(p.dot(ei),2);
|
|
}
|
|
}
|
|
- return { weight*A, weight*b, weight*c };
|
|
+
|
|
|
|
+
|
|
|
|
+ return (Quadric){ weight*A, weight*b, weight*c };
|
|
};
|
|
};
|
|
if(infinite_corner == -1)
|
|
if(infinite_corner == -1)
|
|
{
|
|
{
|