Revert local modifs

This commit is contained in:
Guillaume Damiand 2019-06-28 12:09:02 +02:00
parent dda46d4ce3
commit c0a4d3a74d
1 changed files with 9 additions and 15 deletions

View File

@ -2,32 +2,26 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <string>
typedef CGAL::Simple_cartesian<double> K;
typedef K::Point_3 MyPoint_3;
//typedef CGAL::Surface_mesh<Point_3> Mesh;
typedef CGAL::Polyhedron_3<K> Mesh;
using namespace CGAL;
typedef K::Point_3 Point_3;
typedef CGAL::Surface_mesh<Point_3> Mesh;
int main()
{
Mesh mesh;
CGAL::make_triangle(MyPoint_3(0,0,0),MyPoint_3(1,0,0),MyPoint_3(1,1,0), mesh);
CGAL::make_triangle(Point_3(0,0,0),Point_3(1,0,0),Point_3(1,1,0), mesh);
typedef boost::property_map<Mesh, CGAL::dynamic_vertex_property_t<bool> >::type VertexNameMap;
VertexNameMap vnm = get(CGAL::dynamic_vertex_property_t<bool>(), mesh);
put(vnm, *(vertices(mesh).first), true);
typedef boost::property_map<Mesh, CGAL::dynamic_vertex_property_t<std::string> >::type VertexNameMap;
VertexNameMap vnm = get(CGAL::dynamic_vertex_property_t<std::string>(), mesh);
put(vnm, *(vertices(mesh).first), "Paris");
std::cout << get(vnm, *(vertices(mesh).first)) << std::endl;
typedef boost::property_map<Mesh, CGAL::dynamic_halfedge_property_t<bool> >::type TrafficDensityMap;
TrafficDensityMap tdm = get(CGAL::dynamic_halfedge_property_t<bool>(), mesh);
put(tdm, *(halfedges(mesh).first), false);
typedef boost::property_map<Mesh, CGAL::dynamic_halfedge_property_t<double> >::type TrafficDensityMap;
TrafficDensityMap tdm = get(CGAL::dynamic_halfedge_property_t<double>(), mesh);
put(tdm, *(halfedges(mesh).first), 0.7);
std::cout << get(tdm, *(halfedges(mesh).first)) << std::endl;