Browse Source

work in other dim

Former-commit-id: 90ac597c46c196e4fb9b23b26d85cd212fd2e05d
Alec Jacobson 9 years ago
parent
commit
fccd4565f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/AABB.h

+ 1 - 1
include/igl/AABB.h

@@ -719,7 +719,7 @@ inline void igl::AABB<DerivedV,DIM>::squared_distance(
     int Ip;
     sqrD(p) = squared_distance(V,Ele,Pp,Ip,c);
     I(p) = Ip;
-    C.row(p) = c;
+    C.row(p).head(DIM) = c;
   }
 }