Fix a potential crash when initializing the map for meshes with holes (#1263)

* * Fix a potential crash when initializing the map for meshes with holes
* Fix a minor conversion warning

* * Fix a potential crash when initializing the map for meshes with holes
* Fix a minor conversion warning
This commit is contained in:
martin-marinov77
2019-08-14 14:20:02 -04:00
committed by Zhongshi
parent 8e3b2d913d
commit 4e5dfe1aae
+2 -2
View File
@@ -21,7 +21,7 @@ igl::Timer timer;
igl::SCAFData scaf_data;
bool show_uv = false;
float uv_scale = 0.2;
float uv_scale = 0.2f;
bool key_down(igl::opengl::glfw::Viewer& viewer, unsigned char key, int modifier)
{
@@ -99,7 +99,7 @@ int main(int argc, char *argv[])
Eigen::MatrixXi F_filled;
igl::topological_hole_fill(F, bnd, all_bnds, F_filled);
igl::harmonic(F_filled, bnd, bnd_uv ,1, uv_init);
uv_init = uv_init.topRows(V.rows());
uv_init.conservativeResize(V.rows(), 2);
}
Eigen::VectorXi b; Eigen::MatrixXd bc;