Conforming Delaunay Triangulation 2.5D

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Conforming Delaunay Triangulation 2.5D

Renato
I saw the example using Delaunay Triangulation 2.5D and everything works fine. 
 
Is it possible to use Conforming Delaunay Triangulation with CGAL::Projection_traits_xy_3? 

I'm trying using this setup:

typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Projection_traits_xy_3<K> Gt;
typedef CGAL::Triangulation_vertex_base_with_info_2<std::string, Gt> Vb;
typedef CGAL::Constrained_triangulation_face_base_2<Gt>                 Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> TDS;
typedef CGAL::Exact_predicates_tag Itag;
typedef CGAL::Constrained_Delaunay_triangulation_2<K, TDS, Itag> CDT;

typedef K::Point_3   Point_CDT;

I can't insert a Point_3 on a CDT. I tried using CGAL::No_intersection_tag to avoid create new points with no success.

Is there a way to use Conforming Delaunay Triangulation 2.5D?

--
Renato Silveira
     Ph.D. in Computer Science
     Informatics Institute - UFRGS

     Porto Alegre - RS - Brazil

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Conforming Delaunay Triangulation 2.5D

Pol Monsó Purtí

You have to use Gt instead of K on the cdt typedef


typedef 
CGAL::Constrained_Delaunay_triangulation_2<Gt, TDS, Itag> CDT;

I had trouble getting it to work thought with the exact tag. Use CDT::Point to get the point, its less error-prone.

Cheers and gl!

El dia 06/04/2017 11:39, "Pol M" <[hidden email]> va escriure:
You have to use Gt instead of K on the cdt typedef


typedef 
CGAL::Constrained_Delaunay_triangulation_2<Gt, TDS, Itag> CDT;

I had trouble getting it to work thought with the exact tag. Use CDT::Point to get the point, its less error-prone.

Cheers and gl!



El dia 06/04/2017 10:46, "Renato Silveira" <[hidden email]> va escriure:
I saw the example using Delaunay Triangulation 2.5D and everything works fine. 
 
Is it possible to use Conforming Delaunay Triangulation with CGAL::Projection_traits_xy_3? 

I'm trying using this setup:

typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Projection_traits_xy_3<K> Gt;
typedef CGAL::Triangulation_vertex_base_with_info_2<std::string, Gt> Vb;
typedef CGAL::Constrained_triangulation_face_base_2<Gt>                 Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> TDS;
typedef CGAL::Exact_predicates_tag Itag;
typedef CGAL::Constrained_Delaunay_triangulation_2<K, TDS, Itag> CDT;

typedef K::Point_3   Point_CDT;

I can't insert a Point_3 on a CDT. I tried using CGAL::No_intersection_tag to avoid create new points with no success.

Is there a way to use Conforming Delaunay Triangulation 2.5D?

--
Renato Silveira
     Ph.D. in Computer Science
     Informatics Institute - UFRGS

     Porto Alegre - RS - Brazil


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Conforming Delaunay Triangulation 2.5D

Renato
Thank you!!!!

On Thu, Apr 6, 2017 at 7:26 AM, Pol Monsó Purtí <[hidden email]> wrote:

You have to use Gt instead of K on the cdt typedef


typedef 
CGAL::Constrained_Delaunay_triangulation_2<Gt, TDS, Itag> CDT;

I had trouble getting it to work thought with the exact tag. Use CDT::Point to get the point, its less error-prone.

Cheers and gl!

El dia 06/04/2017 11:39, "Pol M" <[hidden email]> va escriure:
You have to use Gt instead of K on the cdt typedef


typedef 
CGAL::Constrained_Delaunay_triangulation_2<Gt, TDS, Itag> CDT;

I had trouble getting it to work thought with the exact tag. Use CDT::Point to get the point, its less error-prone.

Cheers and gl!



El dia 06/04/2017 10:46, "Renato Silveira" <[hidden email]> va escriure:

I saw the example using Delaunay Triangulation 2.5D and everything works fine. 
 
Is it possible to use Conforming Delaunay Triangulation with CGAL::Projection_traits_xy_3? 

I'm trying using this setup:

typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Projection_traits_xy_3<K> Gt;
typedef CGAL::Triangulation_vertex_base_with_info_2<std::string, Gt> Vb;
typedef CGAL::Constrained_triangulation_face_base_2<Gt>                 Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> TDS;
typedef CGAL::Exact_predicates_tag Itag;
typedef CGAL::Constrained_Delaunay_triangulation_2<K, TDS, Itag> CDT;

typedef K::Point_3   Point_CDT;

I can't insert a Point_3 on a CDT. I tried using CGAL::No_intersection_tag to avoid create new points with no success.

Is there a way to use Conforming Delaunay Triangulation 2.5D?

--
Renato Silveira
     Ph.D. in Computer Science
     Informatics Institute - UFRGS

     Porto Alegre - RS - Brazil





--
Renato Silveira
     Ph.D. in Computer Science
     Informatics Institute - UFRGS

     Porto Alegre - RS - Brazil

Loading...