Created
July 17, 2017 07:36
-
-
Save afabri/c84e0fbc92c0c5dfce9a5dd040d6ed92 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/Exact_predicates_inexact_constructions_kernel.h> | |
#include <CGAL/Exact_predicates_exact_constructions_kernel.h> | |
#include <CGAL/Surface_mesh.h> | |
#include <CGAL/Polygon_mesh_processing/measure.h> | |
#include <iostream> | |
namespace PMP = CGAL::Polygon_mesh_processing; | |
typedef CGAL::Exact_predicates_inexact_constructions_kernel Epic; | |
typedef CGAL::Exact_predicates_exact_constructions_kernel Epec; | |
int main(int argc, char* argv[]) | |
{ | |
{ | |
typedef CGAL::Surface_mesh<Epic::Point_3> Surface_mesh; | |
Surface_mesh sm; | |
Surface_mesh::Face_around_target_range oneRingRange = | |
sm.faces_around_target(sm.halfedge(*vertices(sm).first)); | |
std::cout << PMP::area(oneRingRange, sm); | |
} | |
{ | |
typedef CGAL::Surface_mesh<Epec::Point_3> Surface_mesh; | |
Surface_mesh sm; | |
Surface_mesh::Face_around_target_range oneRingRange = | |
sm.faces_around_target(sm.halfedge(*vertices(sm).first)); | |
std::cout << PMP::area(oneRingRange, sm); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment