Browse Source

Fix unproject_onto_mesh

KarlLeell 6 years ago
parent
commit
8cee0a2d89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/unproject_onto_mesh.cpp

+ 1 - 1
include/igl/unproject_onto_mesh.cpp

@@ -64,7 +64,7 @@ IGL_INLINE bool igl::unproject_onto_mesh(
   {
     return false;
   }
-  bc.resize(3);
+  bc.resize(3, 1);
   bc << 1.0-hit.u-hit.v, hit.u, hit.v;
   fid = hit.id;
   return true;