Skip to content

Instantly share code, notes, and snippets.

@pranavkantgaur
Created January 4, 2016 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pranavkantgaur/ddc18fe6a9d04c11af55 to your computer and use it in GitHub Desktop.
Save pranavkantgaur/ddc18fe6a9d04c11af55 to your computer and use it in GitHub Desktop.
Testing are_facets_same_geometry function
#include <CGAL/Linear_cell_complex.h>
using namespace std;
using namespace CGAL;
typedef Exact_predicates_inexact_constructions_kernel K;
typedef Linear_cell_complex_traits<3, K> Traits;
typedef Linear_cell_complex<3, 3, Traits> LCC;
typedef Point_3<K> Point;
int main()
{
LCC testLCC;
Point p[3];
p[0] = Point(0.0, 0.0, 1.0);
p[1] = Point(1.0, 0.0, 0.0);
p[2] = Point(0.0, 1.0, 0.0);
LCC::Dart_handle d1 = testLCC.make_triangle(p[0], p[1], p[2]);
if (testLCC.are_facets_same_geometry(d1, d1))
cout << "Works" << endl;
else
cout << "Does not work" << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment