outer_hull.cpp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #include "outer_hull.h"
  9. #include "extract_cells.h"
  10. #include "remesh_self_intersections.h"
  11. #include "../../remove_unreferenced.h"
  12. template <
  13. typename DerivedV,
  14. typename DerivedF,
  15. typename DerivedHV,
  16. typename DerivedHF,
  17. typename DerivedJ,
  18. typename Derivedflip>
  19. IGL_INLINE void igl::copyleft::cgal::outer_hull(
  20. const Eigen::PlainObjectBase<DerivedV> & V,
  21. const Eigen::PlainObjectBase<DerivedF> & F,
  22. Eigen::PlainObjectBase<DerivedHV> & HV,
  23. Eigen::PlainObjectBase<DerivedHF> & HF,
  24. Eigen::PlainObjectBase<DerivedJ> & J,
  25. Eigen::PlainObjectBase<Derivedflip> & flip)
  26. {
  27. // Exact types
  28. typedef CGAL::Epeck Kernel;
  29. typedef Kernel::FT ExactScalar;
  30. typedef
  31. Eigen::Matrix<
  32. ExactScalar,
  33. Eigen::Dynamic,
  34. Eigen::Dynamic,
  35. DerivedHV::IsRowMajor>
  36. MatrixXES;
  37. // Remesh self-intersections
  38. MatrixXES Vr;
  39. DerivedHF Fr;
  40. DerivedJ Jr;
  41. {
  42. RemeshSelfIntersectionsParam params;
  43. Eigen::VectorXi I;
  44. Eigen::MatrixXi IF;
  45. remesh_self_intersections(V, F, params, Vr, Fr, IF, Jr, I);
  46. // Merge coinciding vertices into non-manifold vertices.
  47. std::for_each(Fr.data(), Fr.data()+Fr.size(),
  48. [&I](typename DerivedHF::Scalar& a) { a=I[a]; });
  49. // Remove unreferenced vertices.
  50. Eigen::VectorXi UIM;
  51. remove_unreferenced(MatrixXES(Vr),DerivedHF(Fr), Vr, Fr, UIM);
  52. }
  53. // Extract cells for each face
  54. Eigen::MatrixXi C;
  55. extract_cells(Vr,Fr,C);
  56. // Extract faces on ambient cell
  57. int num_outer = 0;
  58. for(int i = 0;i<C.rows();i++)
  59. {
  60. num_outer += ( C(i,0) == 0 || C(i,1) == 0 ) ? 1 : 0;
  61. }
  62. HF.resize(num_outer,3);
  63. J.resize(num_outer,1);
  64. flip.resize(num_outer,1);
  65. {
  66. int h = 0;
  67. for(int i = 0;i<C.rows();i++)
  68. {
  69. if(C(i,0)==0)
  70. {
  71. HF.row(h) = Fr.row(i);
  72. J(h) = Jr(i);
  73. flip(h) = false;
  74. h++;
  75. }else if(C(i,1) == 0)
  76. {
  77. HF.row(h) = Fr.row(i).reverse();
  78. J(h) = Jr(i);
  79. flip(h) = true;
  80. h++;
  81. }
  82. }
  83. assert(h == num_outer);
  84. }
  85. // Remove unreferenced vertices and re-index faces
  86. {
  87. // Cast to output type
  88. DerivedHV Vr_cast(Vr.rows(),Vr.cols());
  89. for(int i = 0;i<Vr.rows();i++)
  90. {
  91. for(int j = 0;j<Vr.cols();j++)
  92. {
  93. assign_scalar(Vr(i,j), Vr_cast(i,j));
  94. }
  95. }
  96. Eigen::VectorXi I;
  97. remove_unreferenced(Vr_cast,DerivedHF(HF),HV,HF,I);
  98. }
  99. }
  100. #include "points_inside_component.h"
  101. #include "order_facets_around_edges.h"
  102. #include "outer_facet.h"
  103. #include "../../sortrows.h"
  104. #include "../../facet_components.h"
  105. #include "../../winding_number.h"
  106. #include "../../triangle_triangle_adjacency.h"
  107. #include "../../unique_edge_map.h"
  108. #include "../../barycenter.h"
  109. #include "../../per_face_normals.h"
  110. #include "../../sort_angles.h"
  111. #include <Eigen/Geometry>
  112. #include <vector>
  113. #include <map>
  114. #include <queue>
  115. #include <iostream>
  116. #include <type_traits>
  117. #include <CGAL/number_utils.h>
  118. //#define IGL_OUTER_HULL_DEBUG
  119. template <
  120. typename DerivedV,
  121. typename DerivedF,
  122. typename DerivedG,
  123. typename DerivedJ,
  124. typename Derivedflip>
  125. IGL_INLINE void igl::copyleft::cgal::outer_hull_legacy(
  126. const Eigen::PlainObjectBase<DerivedV> & V,
  127. const Eigen::PlainObjectBase<DerivedF> & F,
  128. Eigen::PlainObjectBase<DerivedG> & G,
  129. Eigen::PlainObjectBase<DerivedJ> & J,
  130. Eigen::PlainObjectBase<Derivedflip> & flip)
  131. {
  132. #ifdef IGL_OUTER_HULL_DEBUG
  133. std::cerr << "Extracting outer hull" << std::endl;
  134. #endif
  135. using namespace Eigen;
  136. using namespace std;
  137. typedef typename DerivedF::Index Index;
  138. Matrix<Index,DerivedF::RowsAtCompileTime,1> C;
  139. typedef Matrix<typename DerivedV::Scalar,Dynamic,DerivedV::ColsAtCompileTime> MatrixXV;
  140. //typedef Matrix<typename DerivedF::Scalar,Dynamic,DerivedF::ColsAtCompileTime> MatrixXF;
  141. typedef Matrix<typename DerivedG::Scalar,Dynamic,DerivedG::ColsAtCompileTime> MatrixXG;
  142. typedef Matrix<typename DerivedJ::Scalar,Dynamic,DerivedJ::ColsAtCompileTime> MatrixXJ;
  143. const Index m = F.rows();
  144. // UNUSED:
  145. //const auto & duplicate_simplex = [&F](const int f, const int g)->bool
  146. //{
  147. // return
  148. // (F(f,0) == F(g,0) && F(f,1) == F(g,1) && F(f,2) == F(g,2)) ||
  149. // (F(f,1) == F(g,0) && F(f,2) == F(g,1) && F(f,0) == F(g,2)) ||
  150. // (F(f,2) == F(g,0) && F(f,0) == F(g,1) && F(f,1) == F(g,2)) ||
  151. // (F(f,0) == F(g,2) && F(f,1) == F(g,1) && F(f,2) == F(g,0)) ||
  152. // (F(f,1) == F(g,2) && F(f,2) == F(g,1) && F(f,0) == F(g,0)) ||
  153. // (F(f,2) == F(g,2) && F(f,0) == F(g,1) && F(f,1) == F(g,0));
  154. //};
  155. #ifdef IGL_OUTER_HULL_DEBUG
  156. cout<<"outer hull..."<<endl;
  157. #endif
  158. #ifdef IGL_OUTER_HULL_DEBUG
  159. cout<<"edge map..."<<endl;
  160. #endif
  161. typedef Matrix<typename DerivedF::Scalar,Dynamic,2> MatrixX2I;
  162. typedef Matrix<typename DerivedF::Index,Dynamic,1> VectorXI;
  163. //typedef Matrix<typename DerivedV::Scalar, 3, 1> Vector3F;
  164. MatrixX2I E,uE;
  165. VectorXI EMAP;
  166. vector<vector<typename DerivedF::Index> > uE2E;
  167. unique_edge_map(F,E,uE,EMAP,uE2E);
  168. #ifdef IGL_OUTER_HULL_DEBUG
  169. for (size_t ui=0; ui<uE.rows(); ui++) {
  170. std::cout << ui << ": " << uE2E[ui].size() << " -- (";
  171. for (size_t i=0; i<uE2E[ui].size(); i++) {
  172. std::cout << uE2E[ui][i] << ", ";
  173. }
  174. std::cout << ")" << std::endl;
  175. }
  176. #endif
  177. std::vector<std::vector<typename DerivedF::Index> > uE2oE;
  178. std::vector<std::vector<bool> > uE2C;
  179. order_facets_around_edges(V, F, uE, uE2E, uE2oE, uE2C);
  180. uE2E = uE2oE;
  181. VectorXI diIM(3*m);
  182. for (auto ue : uE2E) {
  183. for (size_t i=0; i<ue.size(); i++) {
  184. auto fe = ue[i];
  185. diIM[fe] = i;
  186. }
  187. }
  188. vector<vector<vector<Index > > > TT,_1;
  189. triangle_triangle_adjacency(E,EMAP,uE2E,false,TT,_1);
  190. VectorXI counts;
  191. #ifdef IGL_OUTER_HULL_DEBUG
  192. cout<<"facet components..."<<endl;
  193. #endif
  194. facet_components(TT,C,counts);
  195. assert(C.maxCoeff()+1 == counts.rows());
  196. const size_t ncc = counts.rows();
  197. G.resize(0,F.cols());
  198. J.resize(0,1);
  199. flip.setConstant(m,1,false);
  200. #ifdef IGL_OUTER_HULL_DEBUG
  201. cout<<"reindex..."<<endl;
  202. #endif
  203. // H contains list of faces on outer hull;
  204. vector<bool> FH(m,false);
  205. vector<bool> EH(3*m,false);
  206. vector<MatrixXG> vG(ncc);
  207. vector<MatrixXJ> vJ(ncc);
  208. vector<MatrixXJ> vIM(ncc);
  209. //size_t face_count = 0;
  210. for(size_t id = 0;id<ncc;id++)
  211. {
  212. vIM[id].resize(counts[id],1);
  213. }
  214. // current index into each IM
  215. vector<size_t> g(ncc,0);
  216. // place order of each face in its respective component
  217. for(Index f = 0;f<m;f++)
  218. {
  219. vIM[C(f)](g[C(f)]++) = f;
  220. }
  221. #ifdef IGL_OUTER_HULL_DEBUG
  222. cout<<"barycenters..."<<endl;
  223. #endif
  224. // assumes that "resolve" has handled any coplanar cases correctly and nearly
  225. // coplanar cases can be sorted based on barycenter.
  226. MatrixXV BC;
  227. barycenter(V,F,BC);
  228. #ifdef IGL_OUTER_HULL_DEBUG
  229. cout<<"loop over CCs (="<<ncc<<")..."<<endl;
  230. #endif
  231. for(Index id = 0;id<(Index)ncc;id++)
  232. {
  233. auto & IM = vIM[id];
  234. // starting face that's guaranteed to be on the outer hull and in this
  235. // component
  236. int f;
  237. bool f_flip;
  238. #ifdef IGL_OUTER_HULL_DEBUG
  239. cout<<"outer facet..."<<endl;
  240. #endif
  241. igl::copyleft::cgal::outer_facet(V,F,IM,f,f_flip);
  242. #ifdef IGL_OUTER_HULL_DEBUG
  243. cout<<"outer facet: "<<f<<endl;
  244. //cout << V.row(F(f, 0)) << std::endl;
  245. //cout << V.row(F(f, 1)) << std::endl;
  246. //cout << V.row(F(f, 2)) << std::endl;
  247. #endif
  248. int FHcount = 1;
  249. FH[f] = true;
  250. // Q contains list of face edges to continue traversing upong
  251. queue<int> Q;
  252. Q.push(f+0*m);
  253. Q.push(f+1*m);
  254. Q.push(f+2*m);
  255. flip(f) = f_flip;
  256. //std::cout << "face " << face_count++ << ": " << f << std::endl;
  257. //std::cout << "f " << F.row(f).array()+1 << std::endl;
  258. //cout<<"flip("<<f<<") = "<<(flip(f)?"true":"false")<<endl;
  259. #ifdef IGL_OUTER_HULL_DEBUG
  260. cout<<"BFS..."<<endl;
  261. #endif
  262. while(!Q.empty())
  263. {
  264. // face-edge
  265. const int e = Q.front();
  266. Q.pop();
  267. // face
  268. const int f = e%m;
  269. // corner
  270. const int c = e/m;
  271. #ifdef IGL_OUTER_HULL_DEBUG
  272. std::cout << "edge: " << e << ", ue: " << EMAP(e) << std::endl;
  273. std::cout << "face: " << f << std::endl;
  274. std::cout << "corner: " << c << std::endl;
  275. std::cout << "consistent: " << uE2C[EMAP(e)][diIM[e]] << std::endl;
  276. #endif
  277. // Should never see edge again...
  278. if(EH[e] == true)
  279. {
  280. continue;
  281. }
  282. EH[e] = true;
  283. // source of edge according to f
  284. const int fs = flip(f)?F(f,(c+2)%3):F(f,(c+1)%3);
  285. // destination of edge according to f
  286. const int fd = flip(f)?F(f,(c+1)%3):F(f,(c+2)%3);
  287. // edge valence
  288. const size_t val = uE2E[EMAP(e)].size();
  289. #ifdef IGL_OUTER_HULL_DEBUG
  290. //std::cout << "vd: " << V.row(fd) << std::endl;
  291. //std::cout << "vs: " << V.row(fs) << std::endl;
  292. //std::cout << "edge: " << V.row(fd) - V.row(fs) << std::endl;
  293. for (size_t i=0; i<val; i++) {
  294. if (i == diIM(e)) {
  295. std::cout << "* ";
  296. } else {
  297. std::cout << " ";
  298. }
  299. std::cout << i << ": "
  300. << " (e: " << uE2E[EMAP(e)][i] << ", f: "
  301. << uE2E[EMAP(e)][i] % m * (uE2C[EMAP(e)][i] ? 1:-1) << ")" << std::endl;
  302. }
  303. #endif
  304. // is edge consistent with edge of face used for sorting
  305. const int e_cons = (uE2C[EMAP(e)][diIM(e)] ? 1: -1);
  306. int nfei = -1;
  307. // Loop once around trying to find suitable next face
  308. for(size_t step = 1; step<val+2;step++)
  309. {
  310. const int nfei_new = (diIM(e) + 2*val + e_cons*step*(flip(f)?-1:1))%val;
  311. const int nf = uE2E[EMAP(e)][nfei_new] % m;
  312. {
  313. #ifdef IGL_OUTER_HULL_DEBUG
  314. //cout<<"Next facet: "<<(f+1)<<" --> "<<(nf+1)<<", |"<<
  315. // di[EMAP(e)][diIM(e)]<<" - "<<di[EMAP(e)][nfei_new]<<"| = "<<
  316. // abs(di[EMAP(e)][diIM(e)] - di[EMAP(e)][nfei_new])
  317. // <<endl;
  318. #endif
  319. // Only use this face if not already seen
  320. if(!FH[nf])
  321. {
  322. nfei = nfei_new;
  323. //} else {
  324. // std::cout << "skipping face " << nfei_new << " because it is seen before"
  325. // << std::endl;
  326. }
  327. break;
  328. //} else {
  329. // std::cout << di[EMAP(e)][diIM(e)].transpose() << std::endl;
  330. // std::cout << di[EMAP(e)][diIM(nfei_new)].transpose() << std::endl;
  331. // std::cout << "skipping face " << nfei_new << " with identical dihedral angle"
  332. // << std::endl;
  333. }
  334. //#ifdef IGL_OUTER_HULL_DEBUG
  335. // cout<<"Skipping co-planar facet: "<<(f+1)<<" --> "<<(nf+1)<<endl;
  336. //#endif
  337. }
  338. int max_ne = -1;
  339. if(nfei >= 0)
  340. {
  341. max_ne = uE2E[EMAP(e)][nfei];
  342. }
  343. if(max_ne>=0)
  344. {
  345. // face of neighbor
  346. const int nf = max_ne%m;
  347. #ifdef IGL_OUTER_HULL_DEBUG
  348. if(!FH[nf])
  349. {
  350. // first time seeing face
  351. cout<<(f+1)<<" --> "<<(nf+1)<<endl;
  352. }
  353. #endif
  354. FH[nf] = true;
  355. //std::cout << "face " << face_count++ << ": " << nf << std::endl;
  356. //std::cout << "f " << F.row(nf).array()+1 << std::endl;
  357. FHcount++;
  358. // corner of neighbor
  359. const int nc = max_ne/m;
  360. const int nd = F(nf,(nc+2)%3);
  361. const bool cons = (flip(f)?fd:fs) == nd;
  362. flip(nf) = (cons ? flip(f) : !flip(f));
  363. //cout<<"flip("<<nf<<") = "<<(flip(nf)?"true":"false")<<endl;
  364. const int ne1 = nf+((nc+1)%3)*m;
  365. const int ne2 = nf+((nc+2)%3)*m;
  366. if(!EH[ne1])
  367. {
  368. Q.push(ne1);
  369. }
  370. if(!EH[ne2])
  371. {
  372. Q.push(ne2);
  373. }
  374. }
  375. }
  376. {
  377. vG[id].resize(FHcount,3);
  378. vJ[id].resize(FHcount,1);
  379. //nG += FHcount;
  380. size_t h = 0;
  381. assert(counts(id) == IM.rows());
  382. for(int i = 0;i<counts(id);i++)
  383. {
  384. const size_t f = IM(i);
  385. //if(f_flip)
  386. //{
  387. // flip(f) = !flip(f);
  388. //}
  389. if(FH[f])
  390. {
  391. vG[id].row(h) = (flip(f)?F.row(f).reverse().eval():F.row(f));
  392. vJ[id](h,0) = f;
  393. h++;
  394. }
  395. }
  396. assert((int)h == FHcount);
  397. }
  398. }
  399. // Is A inside B? Assuming A and B are consistently oriented but closed and
  400. // non-intersecting.
  401. const auto & has_overlapping_bbox = [](
  402. const Eigen::PlainObjectBase<DerivedV> & V,
  403. const MatrixXG & A,
  404. const MatrixXG & B)->bool
  405. {
  406. const auto & bounding_box = [](
  407. const Eigen::PlainObjectBase<DerivedV> & V,
  408. const MatrixXG & F)->
  409. DerivedV
  410. {
  411. DerivedV BB(2,3);
  412. BB<<
  413. 1e26,1e26,1e26,
  414. -1e26,-1e26,-1e26;
  415. const size_t m = F.rows();
  416. for(size_t f = 0;f<m;f++)
  417. {
  418. for(size_t c = 0;c<3;c++)
  419. {
  420. const auto & vfc = V.row(F(f,c)).eval();
  421. BB(0,0) = std::min(BB(0,0), vfc(0,0));
  422. BB(0,1) = std::min(BB(0,1), vfc(0,1));
  423. BB(0,2) = std::min(BB(0,2), vfc(0,2));
  424. BB(1,0) = std::max(BB(1,0), vfc(0,0));
  425. BB(1,1) = std::max(BB(1,1), vfc(0,1));
  426. BB(1,2) = std::max(BB(1,2), vfc(0,2));
  427. }
  428. }
  429. return BB;
  430. };
  431. // A lot of the time we're dealing with unrelated, distant components: cull
  432. // them.
  433. DerivedV ABB = bounding_box(V,A);
  434. DerivedV BBB = bounding_box(V,B);
  435. if( (BBB.row(0)-ABB.row(1)).maxCoeff()>0 ||
  436. (ABB.row(0)-BBB.row(1)).maxCoeff()>0 )
  437. {
  438. // bounding boxes do not overlap
  439. return false;
  440. } else {
  441. return true;
  442. }
  443. };
  444. // Reject components which are completely inside other components
  445. vector<bool> keep(ncc,true);
  446. size_t nG = 0;
  447. // This is O( ncc * ncc * m)
  448. for(size_t id = 0;id<ncc;id++)
  449. {
  450. if (!keep[id]) continue;
  451. std::vector<size_t> unresolved;
  452. for(size_t oid = 0;oid<ncc;oid++)
  453. {
  454. if(id == oid || !keep[oid])
  455. {
  456. continue;
  457. }
  458. if (has_overlapping_bbox(V, vG[id], vG[oid])) {
  459. unresolved.push_back(oid);
  460. }
  461. }
  462. const size_t num_unresolved_components = unresolved.size();
  463. DerivedV query_points(num_unresolved_components, 3);
  464. for (size_t i=0; i<num_unresolved_components; i++) {
  465. const size_t oid = unresolved[i];
  466. DerivedF f = vG[oid].row(0);
  467. query_points(i,0) = (V(f(0,0), 0) + V(f(0,1), 0) + V(f(0,2), 0))/3.0;
  468. query_points(i,1) = (V(f(0,0), 1) + V(f(0,1), 1) + V(f(0,2), 1))/3.0;
  469. query_points(i,2) = (V(f(0,0), 2) + V(f(0,1), 2) + V(f(0,2), 2))/3.0;
  470. }
  471. Eigen::VectorXi inside;
  472. igl::copyleft::cgal::points_inside_component(V, vG[id], query_points, inside);
  473. assert((size_t)inside.size() == num_unresolved_components);
  474. for (size_t i=0; i<num_unresolved_components; i++) {
  475. if (inside(i, 0)) {
  476. const size_t oid = unresolved[i];
  477. keep[oid] = false;
  478. }
  479. }
  480. }
  481. for (size_t id = 0; id<ncc; id++) {
  482. if (keep[id]) {
  483. nG += vJ[id].rows();
  484. }
  485. }
  486. // collect G and J across components
  487. G.resize(nG,3);
  488. J.resize(nG,1);
  489. {
  490. size_t off = 0;
  491. for(Index id = 0;id<(Index)ncc;id++)
  492. {
  493. if(keep[id])
  494. {
  495. assert(vG[id].rows() == vJ[id].rows());
  496. G.block(off,0,vG[id].rows(),vG[id].cols()) = vG[id];
  497. J.block(off,0,vJ[id].rows(),vJ[id].cols()) = vJ[id];
  498. off += vG[id].rows();
  499. }
  500. }
  501. }
  502. }
  503. #ifdef IGL_STATIC_LIBRARY
  504. // Explicit template specialization
  505. template void igl::copyleft::cgal::outer_hull<Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Matrix<int, -1, 3, 0, -1, 3>, Eigen::Matrix<int, -1, 3, 0, -1, 3>, Eigen::Matrix<long, -1, 1, 0, -1, 1>, Eigen::Matrix<bool, -1, 1, 0, -1, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 3, 0, -1, 3> >&, Eigen::PlainObjectBase<Eigen::Matrix<long, -1, 1, 0, -1, 1> >&, Eigen::PlainObjectBase<Eigen::Matrix<bool, -1, 1, 0, -1, 1> >&);
  506. template void igl::copyleft::cgal::outer_hull<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, 1, 0, -1, 1>, Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&);
  507. #endif