Add a public typedef FaceGraph to Scene_surface_mesh_item and Scene_polyhedron_item.

This commit is contained in:
Maxime Gimeno 2017-03-10 14:23:36 +01:00
parent 92c7f227a7
commit feba66edf7
2 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ class SCENE_POLYHEDRON_ITEM_EXPORT Scene_polyhedron_item
Q_INTERFACES(CGAL::Three::Scene_zoomable_item_interface)
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.ZoomInterface/1.0")
public:
typedef Polyhedron FaceGraph;
enum STATS {
NB_VERTICES = 0,
NB_CONNECTED_COMPOS,

View File

@ -29,6 +29,7 @@ public:
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef Kernel::Point_3 Point;
typedef CGAL::Surface_mesh<Point> SMesh;
typedef SMesh FaceGraph;
typedef boost::graph_traits<SMesh>::face_descriptor face_descriptor;
Scene_surface_mesh_item();