Created
January 4, 2016 08:58
-
-
Save pranavkantgaur/ddc18fe6a9d04c11af55 to your computer and use it in GitHub Desktop.
Testing are_facets_same_geometry function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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