Просмотр исходного кода

Get AABB to work with eigen3.

Former-commit-id: 2e599b251aa38a84daab56ae8d8ba834f6f02f71
Qingnan Zhou 7 лет назад
Родитель
Сommit
c43cee91f2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/igl/AABB.cpp

+ 1 - 1
include/igl/AABB.cpp

@@ -401,7 +401,7 @@ igl::AABB<DerivedV,DIM>::squared_distance(
     const auto & look_right = [&]()
     {
       int i_right;
-      Eigen::PlainObjectBase<RowVectorDIMS> c_right = c;
+      RowVectorDIMS c_right = c;
       Scalar sqr_d_right = 
         m_right->squared_distance(V,Ele,p,low_sqr_d,sqr_d,i_right,c_right);
       this->set_min(p,sqr_d_right,i_right,c_right,sqr_d,i,c);