|
@@ -23,8 +23,7 @@ IGL_INLINE void igl::per_vertex_point_to_plane_quadrics(
|
|
|
quadrics.resize(
|
|
|
V.rows(),
|
|
|
// gcc <=4.8 can't handle initializer lists correctly
|
|
|
- (Quadric)
|
|
|
- {Eigen::MatrixXd::Zero(dim,dim),Eigen::RowVectorXd::Zero(dim),0});
|
|
|
+ Quadric{Eigen::MatrixXd::Zero(dim,dim),Eigen::RowVectorXd::Zero(dim),0});
|
|
|
Eigen::MatrixXd I = Eigen::MatrixXd::Identity(dim,dim);
|
|
|
// Rather initial with zeros, initial with a small amount of energy pull
|
|
|
// toward original vertex position
|
|
@@ -81,7 +80,7 @@ IGL_INLINE void igl::per_vertex_point_to_plane_quadrics(
|
|
|
}
|
|
|
// gcc <=4.8 can't handle initializer lists correctly: needs explicit
|
|
|
// cast
|
|
|
- return (Quadric){ weight*A, weight*b, weight*c };
|
|
|
+ return Quadric{ weight*A, weight*b, weight*c };
|
|
|
};
|
|
|
if(infinite_corner == -1)
|
|
|
{
|