outer_hull.cpp 20 KB

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