|
@@ -10,12 +10,14 @@
|
|
|
#include <CGAL/Polyhedron_incremental_builder_3.h>
|
|
|
|
|
|
template <
|
|
|
- typename Polyhedron,
|
|
|
- typename DerivedV,
|
|
|
- typename DerivedF>
|
|
|
+ typename DerivedV,
|
|
|
+ typename DerivedF,
|
|
|
+ typename Polyhedron>
|
|
|
IGL_INLINE bool igl::copyleft::cgal::mesh_to_polyhedron(
|
|
|
- const Eigen::MatrixBase<DerivedV>& V, const Eigen::MatrixBase<DerivedF>& F,
|
|
|
- Polyhedron& poly) {
|
|
|
+ const Eigen::MatrixBase<DerivedV>& V,
|
|
|
+ const Eigen::MatrixBase<DerivedF>& F,
|
|
|
+ Polyhedron& poly)
|
|
|
+{
|
|
|
typedef typename Polyhedron::HalfedgeDS HalfedgeDS;
|
|
|
// Postcondition: hds is a valid polyhedral surface.
|
|
|
CGAL::Polyhedron_incremental_builder_3<HalfedgeDS> B(poly.hds());
|
|
@@ -50,6 +52,4 @@ IGL_INLINE bool igl::copyleft::cgal::mesh_to_polyhedron(
|
|
|
// Explicit template instantiation
|
|
|
#include <CGAL/Simple_cartesian.h>
|
|
|
#include <CGAL/Polyhedron_items_with_id_3.h>
|
|
|
-template bool igl::copyleft::cgal::mesh_to_polyhedron<CGAL::Polyhedron_3<CGAL::Simple_cartesian<double>, CGAL::Polyhedron_items_with_id_3, CGAL::HalfedgeDS_default, std::allocator<int> > >(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1> const&, CGAL::Polyhedron_3<CGAL::Simple_cartesian<double>, CGAL::Polyhedron_items_with_id_3, CGAL::HalfedgeDS_default, std::allocator<int> >&);
|
|
|
-template bool igl::copyleft::cgal::mesh_to_polyhedron<CGAL::Polyhedron_3<CGAL::Simple_cartesian<float>, CGAL::Polyhedron_items_with_id_3, CGAL::HalfedgeDS_default, std::allocator<int> > >(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1> const&, CGAL::Polyhedron_3<CGAL::Simple_cartesian<float>, CGAL::Polyhedron_items_with_id_3, CGAL::HalfedgeDS_default, std::allocator<int> >&);
|
|
|
#endif
|