Also test EPEC in the testsuite
This commit is contained in:
committed by
Jane Tournois
parent
73fb767025
commit
702149cd93
@@ -1,3 +1,4 @@
|
||||
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
|
||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||
#include <CGAL/Polyhedron_3.h>
|
||||
#include <CGAL/boost/graph/properties_Polyhedron_3.h>
|
||||
@@ -11,16 +12,19 @@
|
||||
#include <fstream>
|
||||
#include <iterator>
|
||||
|
||||
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
|
||||
typedef CGAL::Polyhedron_3<K> Polyhedron;
|
||||
typedef CGAL::Exact_predicates_exact_constructions_kernel Epec;
|
||||
typedef CGAL::Exact_predicates_inexact_constructions_kernel Epic;
|
||||
|
||||
typedef K::Point_3 Point;
|
||||
typedef K::Vector_3 Vector;
|
||||
typedef boost::graph_traits<Polyhedron>::vertex_descriptor vertex_descriptor;
|
||||
typedef boost::graph_traits<Polyhedron>::face_descriptor face_descriptor;
|
||||
|
||||
void test(const char* filename)
|
||||
template <typename K>
|
||||
void test(const char* filename, const K&)
|
||||
{
|
||||
typedef CGAL::Polyhedron_3<K> Polyhedron;
|
||||
|
||||
typedef K::Point_3 Point;
|
||||
typedef K::Vector_3 Vector;
|
||||
typedef boost::graph_traits<Polyhedron>::vertex_descriptor vertex_descriptor;
|
||||
typedef boost::graph_traits<Polyhedron>::face_descriptor face_descriptor;
|
||||
|
||||
//run test for a Polyhedron
|
||||
Polyhedron poly; // file should contain oriented polyhedron
|
||||
std::ifstream input(filename);
|
||||
@@ -53,7 +57,8 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
const char* filename = (argc > 1) ? argv[1] : "data/elephant.off";
|
||||
|
||||
test(filename);
|
||||
test(filename, Epic());
|
||||
test(filename, Epec());
|
||||
|
||||
std::cerr << "All done." << std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user