extract_cells.cpp 19 KB

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