Skip to Content.
Sympa Menu

cgal-discuss - Pb : Point_3 insertion

Subject: CGAL users discussion list

List archive

Pb : Point_3 insertion


Chronological Thread 
  • From: "Tyver Ray" <>
  • To:
  • Subject: Pb : Point_3 insertion
  • Date: Thu, 21 Jun 2007 11:11:13 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=QKNxwuuwpYXcZ+UT4CH/SFmAoG/tk2qg15Z1oK39XWW0H7l6CDsOihCS3z8sNzyOeLH0m4Q7V+4b3Q0sQ8ZNqu0ojuJsuQKfOK8J1sIqOonuuUCGduk1wtmosKSnsulOEXXCMssKYw9NKqUkntysaxhvcijbMtOWzx5qyo9sDco=

Hi!

I've created my own vertex and face class.
Now I have a problem with my point insertion in my Delaunay_triangulation...
I can't insert Point_3 types and I don't know why!!
However I've used a Triangulation_euclidean_traits_xy_3 for my Delaunay_triangulation_2.

Please, if you have an idea...



#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Triangulation_euclidean_traits_xy_3.h>
#include <CGAL/Delaunay_triangulation_2.h>
#include "My_base_classes.h"

struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};
typedef CGAL::Triangulation_euclidean_traits_xy_3<K>  Gt;

typedef My_vertex_base<K>                                         Vb;
typedef My_face_base<K>                                           Fb;
typedef CGAL::Triangulation_data_structure_2<Vb,Fb>   Tds;
typedef CGAL::Delaunay_triangulation_2<Gt,Tds>          Delaunay;

typedef Delaunay::Vertex_handle                        Vertex_handle;
typedef Delaunay::Face_handle                           Face_handle;

typedef Gt::Point                                                Point3;
//typedef Delaunay::Line_face_circulator               Line_face_circulator;

Delaunay dt;


int main()
{
    dt.insert(Point3(0, 10, 3));
    dt.insert(Point3(1, 20, 6));
    dt.insert(Point3(2, 30, 13));
    dt.insert(Point3(3, 40, 9));

    return 0;
}



  • Pb : Point_3 insertion, Tyver Ray, 06/21/2007

Archive powered by MHonArc 2.6.16.

Top of Page