|
@@ -9,13 +9,13 @@
|
|
|
#include <CGAL/Polyhedron_3.h>
|
|
|
#include <CGAL/Polyhedron_incremental_builder_3.h>
|
|
|
|
|
|
-
|
|
|
-template <typename Polyhedron>
|
|
|
+template <
|
|
|
+ typename Polyhedron,
|
|
|
+ typename DerivedV,
|
|
|
+ typename DerivedF>
|
|
|
IGL_INLINE bool igl::copyleft::cgal::mesh_to_polyhedron(
|
|
|
- const Eigen::MatrixXd & V,
|
|
|
- const Eigen::MatrixXi & 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());
|
|
@@ -51,4 +51,5 @@ IGL_INLINE bool igl::copyleft::cgal::mesh_to_polyhedron(
|
|
|
#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
|