Skip to content

Instantly share code, notes, and snippets.

@afabri
Created July 17, 2017 07:36
Show Gist options
  • Save afabri/c84e0fbc92c0c5dfce9a5dd040d6ed92 to your computer and use it in GitHub Desktop.
Save afabri/c84e0fbc92c0c5dfce9a5dd040d6ed92 to your computer and use it in GitHub Desktop.
#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