Explorar el Código

work in other dim

Former-commit-id: 90ac597c46c196e4fb9b23b26d85cd212fd2e05d
Alec Jacobson hace 9 años
padre
commit
fccd4565f0
Se han modificado 1 ficheros con 1 adiciones y 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;
   }
 }