1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Triangulation_euclidean_traits_xy_3.h>
#include <CGAL/Delaunay_triangulation_2.h>
template <class kernel, class TDS>
class DT2 : public CGAL::Delaunay_triangulation_2<kernel,TDS>
{
public:
void gl_draw_generators()
{
//ici viendra un dessinage GL
}
private:
QString name; // le nom de la triangulation
};
int main(int argc, char *argv[])
{
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt;
typedef CGAL::Delaunay_triangulation_2<Gt> Delaunay;
Delaunay* normal=new Delaunay; // Cela fonctionne ( pas d'héritage )
DT2<K,Gt>* heritage=new DT2<K,Gt>(); // Cela provoque une quantité d'erreur 'no type named...'
} |
Partager