Explorar o código

work in other dim

Former-commit-id: 90ac597c46c196e4fb9b23b26d85cd212fd2e05d
Alec Jacobson %!s(int64=9) %!d(string=hai) anos
pai
achega
fccd4565f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
   }
 }