extract_cells.cpp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2015 Qingnan Zhou <qnzhou@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. //
  9. #include "extract_cells.h"
  10. #include "closest_facet.h"
  11. #include "order_facets_around_edge.h"
  12. #include "outer_facet.h"
  13. #include "submesh_aabb_tree.h"
  14. #include "../../extract_manifold_patches.h"
  15. #include "../../facet_components.h"
  16. #include "../../get_seconds.h"
  17. #include "../../triangle_triangle_adjacency.h"
  18. #include "../../unique_edge_map.h"
  19. #include "../../vertex_triangle_adjacency.h"
  20. #include <CGAL/AABB_tree.h>
  21. #include <CGAL/AABB_traits.h>
  22. #include <CGAL/AABB_triangle_primitive.h>
  23. #include <CGAL/intersections.h>
  24. #include <CGAL/Exact_predicates_exact_constructions_kernel.h>
  25. #include <iostream>
  26. #include <vector>
  27. #include <queue>
  28. #include <map>
  29. #include <set>
  30. //#define EXTRACT_CELLS_DEBUG
  31. template<
  32. typename DerivedV,
  33. typename DerivedF,
  34. typename DerivedC >
  35. IGL_INLINE size_t igl::copyleft::cgal::extract_cells(
  36. const Eigen::PlainObjectBase<DerivedV>& V,
  37. const Eigen::PlainObjectBase<DerivedF>& F,
  38. Eigen::PlainObjectBase<DerivedC>& cells)
  39. {
  40. const size_t num_faces = F.rows();
  41. // Construct edge adjacency
  42. Eigen::MatrixXi E, uE;
  43. Eigen::VectorXi EMAP;
  44. std::vector<std::vector<size_t> > uE2E;
  45. igl::unique_edge_map(F, E, uE, EMAP, uE2E);
  46. // Cluster into manifold patches
  47. Eigen::VectorXi P;
  48. igl::extract_manifold_patches(F, EMAP, uE2E, P);
  49. // Extract cells
  50. DerivedC per_patch_cells;
  51. const size_t num_cells =
  52. igl::copyleft::cgal::extract_cells(V,F,P,E,uE,uE2E,EMAP,per_patch_cells);
  53. // Distribute per-patch cell information to each face
  54. cells.resize(num_faces, 2);
  55. for (size_t i=0; i<num_faces; i++)
  56. {
  57. cells.row(i) = per_patch_cells.row(P[i]);
  58. }
  59. return num_cells;
  60. }
  61. template<
  62. typename DerivedV,
  63. typename DerivedF,
  64. typename DerivedP,
  65. typename DerivedE,
  66. typename DeriveduE,
  67. typename uE2EType,
  68. typename DerivedEMAP,
  69. typename DerivedC >
  70. IGL_INLINE size_t igl::copyleft::cgal::extract_cells(
  71. const Eigen::PlainObjectBase<DerivedV>& V,
  72. const Eigen::PlainObjectBase<DerivedF>& F,
  73. const Eigen::PlainObjectBase<DerivedP>& P,
  74. const Eigen::PlainObjectBase<DerivedE>& E,
  75. const Eigen::PlainObjectBase<DeriveduE>& uE,
  76. const std::vector<std::vector<uE2EType> >& uE2E,
  77. const Eigen::PlainObjectBase<DerivedEMAP>& EMAP,
  78. Eigen::PlainObjectBase<DerivedC>& cells)
  79. {
  80. typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
  81. typedef Kernel::Point_3 Point_3;
  82. typedef Kernel::Plane_3 Plane_3;
  83. typedef Kernel::Segment_3 Segment_3;
  84. typedef Kernel::Triangle_3 Triangle;
  85. typedef std::vector<Triangle>::iterator Iterator;
  86. typedef CGAL::AABB_triangle_primitive<Kernel, Iterator> Primitive;
  87. typedef CGAL::AABB_traits<Kernel, Primitive> AABB_triangle_traits;
  88. typedef CGAL::AABB_tree<AABB_triangle_traits> Tree;
  89. #ifdef EXTRACT_CELLS_DEBUG
  90. const auto & tictoc = []() -> double
  91. {
  92. static double t_start = igl::get_seconds();
  93. double diff = igl::get_seconds()-t_start;
  94. t_start += diff;
  95. return diff;
  96. };
  97. const auto log_time = [&](const std::string& label) -> void {
  98. std::cout << "extract_cells." << label << ": "
  99. << tictoc() << std::endl;
  100. };
  101. tictoc();
  102. #else
  103. // no-op
  104. const auto log_time = [](const std::string){};
  105. #endif
  106. const size_t num_faces = F.rows();
  107. typedef typename DerivedF::Scalar Index;
  108. const size_t num_patches = P.maxCoeff()+1;
  109. // Extract all cells...
  110. DerivedC raw_cells;
  111. const size_t num_raw_cells =
  112. extract_cells_single_component(V,F,P,uE,uE2E,EMAP,raw_cells);
  113. log_time("extract_single_component_cells");
  114. // Compute triangle-triangle adjacency data-structure
  115. std::vector<std::vector<std::vector<Index > > > TT,_1;
  116. igl::triangle_triangle_adjacency(E, EMAP, uE2E, false, TT, _1);
  117. log_time("compute_face_adjacency");
  118. // Compute connected components of the mesh
  119. Eigen::VectorXi C, counts;
  120. igl::facet_components(TT, C, counts);
  121. log_time("form_components");
  122. const size_t num_components = counts.size();
  123. // components[c] --> list of face indices into F of faces in component c
  124. std::vector<std::vector<size_t> > components(num_components);
  125. // Loop over all faces
  126. for (size_t i=0; i<num_faces; i++)
  127. {
  128. components[C[i]].push_back(i);
  129. }
  130. // Convert vector lists to Eigen lists...
  131. // and precompute data-structures for each component
  132. std::vector<std::vector<size_t> > VF,VFi;
  133. igl::vertex_triangle_adjacency(V.rows(), F, VF, VFi);
  134. std::vector<Eigen::VectorXi> Is(num_components);
  135. std::vector<
  136. CGAL::AABB_tree<
  137. CGAL::AABB_traits<
  138. Kernel,
  139. CGAL::AABB_triangle_primitive<
  140. Kernel, std::vector<
  141. Kernel::Triangle_3 >::iterator > > > > trees(num_components);
  142. std::vector< std::vector<Kernel::Triangle_3 > >
  143. triangle_lists(num_components);
  144. std::vector<std::vector<bool> > in_Is(num_components);
  145. for (size_t i=0; i<num_components; i++)
  146. {
  147. Is[i].resize(components[i].size());
  148. std::copy(components[i].begin(), components[i].end(),Is[i].data());
  149. submesh_aabb_tree(V,F,Is[i],trees[i],triangle_lists[i],in_Is[i]);
  150. }
  151. // Find outer facets, their orientations and cells for each component
  152. Eigen::VectorXi outer_facets(num_components);
  153. Eigen::VectorXi outer_facet_orientation(num_components);
  154. Eigen::VectorXi outer_cells(num_components);
  155. for (size_t i=0; i<num_components; i++)
  156. {
  157. bool flipped;
  158. igl::copyleft::cgal::outer_facet(V, F, Is[i], outer_facets[i], flipped);
  159. outer_facet_orientation[i] = flipped?1:0;
  160. outer_cells[i] = raw_cells(P[outer_facets[i]], outer_facet_orientation[i]);
  161. }
  162. #ifdef EXTRACT_CELLS_DEBUG
  163. log_time("outer_facet_per_component");
  164. #endif
  165. // Compute barycenter of a triangle in mesh (V,F)
  166. //
  167. // Inputs:
  168. // fid index into F
  169. // Returns row-vector of barycenter coordinates
  170. const auto get_triangle_center = [&V,&F](const size_t fid)
  171. {
  172. return ((V.row(F(fid,0))+V.row(F(fid,1))+V.row(F(fid,2)))/3.0).eval();
  173. };
  174. std::vector<std::vector<size_t> > nested_cells(num_raw_cells);
  175. std::vector<std::vector<size_t> > ambient_cells(num_raw_cells);
  176. std::vector<std::vector<size_t> > ambient_comps(num_components);
  177. // Only bother if there's more than one component
  178. if(num_components > 1)
  179. {
  180. // construct bounding boxes for each component
  181. DerivedV bbox_min(num_components, 3);
  182. DerivedV bbox_max(num_components, 3);
  183. // Why not just initialize to numeric_limits::min, numeric_limits::max?
  184. bbox_min.rowwise() = V.colwise().maxCoeff().eval();
  185. bbox_max.rowwise() = V.colwise().minCoeff().eval();
  186. // Loop over faces
  187. for (size_t i=0; i<num_faces; i++)
  188. {
  189. // component of this face
  190. const auto comp_id = C[i];
  191. const auto& f = F.row(i);
  192. for (size_t j=0; j<3; j++)
  193. {
  194. for(size_t d=0;d<3;d++)
  195. {
  196. bbox_min(comp_id,d) = std::min(bbox_min(comp_id,d), V(f[j],d));
  197. bbox_max(comp_id,d) = std::max(bbox_max(comp_id,d), V(f[j],d));
  198. }
  199. }
  200. }
  201. // Return true if box of component ci intersects that of cj
  202. const auto bbox_intersects = [&bbox_max,&bbox_min](size_t ci, size_t cj)
  203. {
  204. return !(
  205. bbox_max(ci,0) < bbox_min(cj,0) ||
  206. bbox_max(ci,1) < bbox_min(cj,1) ||
  207. bbox_max(ci,2) < bbox_min(cj,2) ||
  208. bbox_max(cj,0) < bbox_min(ci,0) ||
  209. bbox_max(cj,1) < bbox_min(ci,1) ||
  210. bbox_max(cj,2) < bbox_min(ci,2));
  211. };
  212. // Loop over components. This section is O(m²)
  213. for (size_t i=0; i<num_components; i++)
  214. {
  215. // List of components that could overlap with component i
  216. std::vector<size_t> candidate_comps;
  217. candidate_comps.reserve(num_components);
  218. // Loop over components
  219. for (size_t j=0; j<num_components; j++)
  220. {
  221. if (i == j) continue;
  222. if (bbox_intersects(i,j)) candidate_comps.push_back(j);
  223. }
  224. const size_t num_candidate_comps = candidate_comps.size();
  225. if (num_candidate_comps == 0) continue;
  226. // Get query points on each candidate component: barycenter of
  227. // outer-facet
  228. DerivedV queries(num_candidate_comps, 3);
  229. for (size_t j=0; j<num_candidate_comps; j++)
  230. {
  231. const size_t index = candidate_comps[j];
  232. queries.row(j) = get_triangle_center(outer_facets[index]);
  233. }
  234. // Gather closest facets in ith component to each query point and their
  235. // orientations
  236. const auto& I = Is[i];
  237. const auto& tree = trees[i];
  238. const auto& in_I = in_Is[i];
  239. const auto& triangles = triangle_lists[i];
  240. Eigen::VectorXi closest_facets, closest_facet_orientations;
  241. closest_facet(
  242. V,
  243. F,
  244. I,
  245. queries,
  246. uE2E,
  247. EMAP,
  248. VF,
  249. VFi,
  250. tree,
  251. triangles,
  252. in_I,
  253. closest_facets,
  254. closest_facet_orientations);
  255. // Loop over all candidates
  256. for (size_t j=0; j<num_candidate_comps; j++)
  257. {
  258. const size_t index = candidate_comps[j];
  259. const size_t closest_patch = P[closest_facets[j]];
  260. const size_t closest_patch_side = closest_facet_orientations[j] ? 0:1;
  261. // The cell id of the closest patch
  262. const size_t ambient_cell =
  263. raw_cells(closest_patch,closest_patch_side);
  264. if (ambient_cell != (size_t)outer_cells[i])
  265. {
  266. // ---> component index inside component i, because the cell of the
  267. // closest facet on i to component index is **not** the same as the
  268. // "outer cell" of component i: component index is **not** outside of
  269. // component i (therefore it's inside).
  270. nested_cells[ambient_cell].push_back(outer_cells[index]);
  271. ambient_cells[outer_cells[index]].push_back(ambient_cell);
  272. ambient_comps[index].push_back(i);
  273. }
  274. }
  275. }
  276. }
  277. #ifdef EXTRACT_CELLS_DEBUG
  278. log_time("nested_relationship");
  279. #endif
  280. const size_t INVALID = std::numeric_limits<size_t>::max();
  281. const size_t INFINITE_CELL = num_raw_cells;
  282. std::vector<size_t> embedded_cells(num_raw_cells, INVALID);
  283. for (size_t i=0; i<num_components; i++) {
  284. const size_t outer_cell = outer_cells[i];
  285. const auto& ambient_comps_i = ambient_comps[i];
  286. const auto& ambient_cells_i = ambient_cells[outer_cell];
  287. const size_t num_ambient_comps = ambient_comps_i.size();
  288. assert(num_ambient_comps == ambient_cells_i.size());
  289. if (num_ambient_comps > 0) {
  290. size_t embedded_comp = INVALID;
  291. size_t embedded_cell = INVALID;
  292. for (size_t j=0; j<num_ambient_comps; j++) {
  293. if (ambient_comps[ambient_comps_i[j]].size() ==
  294. num_ambient_comps-1) {
  295. embedded_comp = ambient_comps_i[j];
  296. embedded_cell = ambient_cells_i[j];
  297. break;
  298. }
  299. }
  300. assert(embedded_comp != INVALID);
  301. assert(embedded_cell != INVALID);
  302. embedded_cells[outer_cell] = embedded_cell;
  303. } else {
  304. embedded_cells[outer_cell] = INFINITE_CELL;
  305. }
  306. }
  307. for (size_t i=0; i<num_patches; i++) {
  308. if (embedded_cells[raw_cells(i,0)] != INVALID) {
  309. raw_cells(i,0) = embedded_cells[raw_cells(i, 0)];
  310. }
  311. if (embedded_cells[raw_cells(i,1)] != INVALID) {
  312. raw_cells(i,1) = embedded_cells[raw_cells(i, 1)];
  313. }
  314. }
  315. size_t count = 0;
  316. std::vector<size_t> mapped_indices(num_raw_cells+1, INVALID);
  317. // Always map infinite cell to index 0.
  318. mapped_indices[INFINITE_CELL] = count;
  319. count++;
  320. for (size_t i=0; i<num_patches; i++) {
  321. const size_t old_positive_cell_id = raw_cells(i, 0);
  322. const size_t old_negative_cell_id = raw_cells(i, 1);
  323. size_t positive_cell_id, negative_cell_id;
  324. if (mapped_indices[old_positive_cell_id] == INVALID) {
  325. mapped_indices[old_positive_cell_id] = count;
  326. positive_cell_id = count;
  327. count++;
  328. } else {
  329. positive_cell_id = mapped_indices[old_positive_cell_id];
  330. }
  331. if (mapped_indices[old_negative_cell_id] == INVALID) {
  332. mapped_indices[old_negative_cell_id] = count;
  333. negative_cell_id = count;
  334. count++;
  335. } else {
  336. negative_cell_id = mapped_indices[old_negative_cell_id];
  337. }
  338. raw_cells(i, 0) = positive_cell_id;
  339. raw_cells(i, 1) = negative_cell_id;
  340. }
  341. cells = raw_cells;
  342. #ifdef EXTRACT_CELLS_DEBUG
  343. log_time("finalize");
  344. #endif
  345. return count;
  346. }
  347. template<
  348. typename DerivedV,
  349. typename DerivedF,
  350. typename DerivedP,
  351. typename DeriveduE,
  352. typename uE2EType,
  353. typename DerivedEMAP,
  354. typename DerivedC>
  355. IGL_INLINE size_t igl::copyleft::cgal::extract_cells_single_component(
  356. const Eigen::PlainObjectBase<DerivedV>& V,
  357. const Eigen::PlainObjectBase<DerivedF>& F,
  358. const Eigen::PlainObjectBase<DerivedP>& P,
  359. const Eigen::PlainObjectBase<DeriveduE>& uE,
  360. const std::vector<std::vector<uE2EType> >& uE2E,
  361. const Eigen::PlainObjectBase<DerivedEMAP>& EMAP,
  362. Eigen::PlainObjectBase<DerivedC>& cells)
  363. {
  364. const size_t num_faces = F.rows();
  365. // Input:
  366. // index index into #F*3 list of undirect edges
  367. // Returns index into face
  368. const auto edge_index_to_face_index = [&num_faces](size_t index)
  369. {
  370. return index % num_faces;
  371. };
  372. // Determine if a face (containing undirected edge {s,d} is consistently
  373. // oriented with directed edge {s,d} (or otherwise it is with {d,s})
  374. //
  375. // Inputs:
  376. // fid face index into F
  377. // s source index of edge
  378. // d destination index of edge
  379. // Returns true if face F(fid,:) is consistent with {s,d}
  380. const auto is_consistent =
  381. [&F](const size_t fid, const size_t s, const size_t d) -> bool
  382. {
  383. if ((size_t)F(fid, 0) == s && (size_t)F(fid, 1) == d) return false;
  384. if ((size_t)F(fid, 1) == s && (size_t)F(fid, 2) == d) return false;
  385. if ((size_t)F(fid, 2) == s && (size_t)F(fid, 0) == d) return false;
  386. if ((size_t)F(fid, 0) == d && (size_t)F(fid, 1) == s) return true;
  387. if ((size_t)F(fid, 1) == d && (size_t)F(fid, 2) == s) return true;
  388. if ((size_t)F(fid, 2) == d && (size_t)F(fid, 0) == s) return true;
  389. throw "Invalid face!";
  390. return false;
  391. };
  392. const size_t num_unique_edges = uE.rows();
  393. const size_t num_patches = P.maxCoeff() + 1;
  394. // Build patch-patch adjacency list.
  395. std::vector<std::map<size_t, size_t> > patch_adj(num_patches);
  396. for (size_t i=0; i<num_unique_edges; i++) {
  397. const size_t s = uE(i,0);
  398. const size_t d = uE(i,1);
  399. const auto adj_faces = uE2E[i];
  400. const size_t num_adj_faces = adj_faces.size();
  401. if (num_adj_faces > 2) {
  402. for (size_t j=0; j<num_adj_faces; j++) {
  403. const size_t patch_j = P[edge_index_to_face_index(adj_faces[j])];
  404. for (size_t k=j+1; k<num_adj_faces; k++) {
  405. const size_t patch_k = P[edge_index_to_face_index(adj_faces[k])];
  406. if (patch_adj[patch_j].find(patch_k) == patch_adj[patch_j].end()) {
  407. patch_adj[patch_j].insert({patch_k, i});
  408. }
  409. if (patch_adj[patch_k].find(patch_j) == patch_adj[patch_k].end()) {
  410. patch_adj[patch_k].insert({patch_j, i});
  411. }
  412. }
  413. }
  414. }
  415. }
  416. const int INVALID = std::numeric_limits<int>::max();
  417. std::vector<size_t> cell_labels(num_patches * 2);
  418. for (size_t i=0; i<num_patches; i++) cell_labels[i] = i;
  419. std::vector<std::set<size_t> > equivalent_cells(num_patches*2);
  420. std::vector<bool> processed(num_unique_edges, false);
  421. size_t label_count=0;
  422. for (size_t i=0; i<num_patches; i++) {
  423. for (const auto& entry : patch_adj[i]) {
  424. const size_t neighbor_patch = entry.first;
  425. const size_t uei = entry.second;
  426. if (processed[uei]) continue;
  427. processed[uei] = true;
  428. const auto& adj_faces = uE2E[uei];
  429. const size_t num_adj_faces = adj_faces.size();
  430. assert(num_adj_faces > 2);
  431. const size_t s = uE(uei,0);
  432. const size_t d = uE(uei,1);
  433. std::vector<int> signed_adj_faces;
  434. for (auto ej : adj_faces)
  435. {
  436. const size_t fid = edge_index_to_face_index(ej);
  437. bool cons = is_consistent(fid, s, d);
  438. signed_adj_faces.push_back((fid+1)*(cons ? 1:-1));
  439. }
  440. {
  441. // Sort adjacent faces cyclically around {s,d}
  442. Eigen::VectorXi order;
  443. // order[f] will reveal the order of face f in signed_adj_faces
  444. order_facets_around_edge(V, F, s, d, signed_adj_faces, order);
  445. for (size_t j=0; j<num_adj_faces; j++) {
  446. const size_t curr_idx = j;
  447. const size_t next_idx = (j+1)%num_adj_faces;
  448. const size_t curr_patch_idx =
  449. P[edge_index_to_face_index(adj_faces[order[curr_idx]])];
  450. const size_t next_patch_idx =
  451. P[edge_index_to_face_index(adj_faces[order[next_idx]])];
  452. const bool curr_cons = signed_adj_faces[order[curr_idx]] > 0;
  453. const bool next_cons = signed_adj_faces[order[next_idx]] > 0;
  454. const size_t curr_cell_idx = curr_patch_idx*2 + (curr_cons?0:1);
  455. const size_t next_cell_idx = next_patch_idx*2 + (next_cons?1:0);
  456. equivalent_cells[curr_cell_idx].insert(next_cell_idx);
  457. equivalent_cells[next_cell_idx].insert(curr_cell_idx);
  458. }
  459. }
  460. }
  461. }
  462. size_t count=0;
  463. cells.resize(num_patches, 2);
  464. cells.setConstant(INVALID);
  465. const auto extract_equivalent_cells = [&](size_t i) {
  466. if (cells(i/2, i%2) != INVALID) return;
  467. std::queue<size_t> Q;
  468. Q.push(i);
  469. cells(i/2, i%2) = count;
  470. while (!Q.empty()) {
  471. const size_t index = Q.front();
  472. Q.pop();
  473. for (const auto j : equivalent_cells[index]) {
  474. if (cells(j/2, j%2) == INVALID) {
  475. cells(j/2, j%2) = count;
  476. Q.push(j);
  477. }
  478. }
  479. }
  480. count++;
  481. };
  482. for (size_t i=0; i<num_patches; i++) {
  483. extract_equivalent_cells(i*2);
  484. extract_equivalent_cells(i*2+1);
  485. }
  486. assert((cells.array() != INVALID).all());
  487. return count;
  488. }
  489. #ifdef IGL_STATIC_LIBRARY
  490. #include <CGAL/Exact_predicates_exact_constructions_kernel.h>
  491. template unsigned long igl::copyleft::cgal::extract_cells<Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -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>, unsigned long, Eigen::Matrix<int, -1, 1, 0, -1, 1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -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> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, std::vector<std::vector<unsigned long, std::allocator<unsigned long> >, std::allocator<std::vector<unsigned long, std::allocator<unsigned long> > > > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&);
  492. #endif