Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Point precision

Subject: CGAL users discussion list

List archive

[cgal-discuss] Point precision


Chronological Thread 
  • From: Pol Monsó Purtí Helimap <>
  • To:
  • Subject: [cgal-discuss] Point precision
  • Date: Thu, 26 Nov 2015 13:29:14 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:XvSuJR1P9KbOq/57smDT+DRfVm0co7zxezQtwd8ZsegTK/ad9pjvdHbS+e9qxAeQG96LtrQU06GN7ejJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6PyZTvnLvss7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cY6Lod8JtLXqz+Oqg5VrdFFy8OMmYv5cStuwOQYxGI4y4kVWEhtx1OGJPy1AzgQhLGkib+t+90wGHOJcryC7UzXy+lx6dmTB7tgT9BPD5vozKfsdB5kK8O+EHpnBd42YOBOIw=

I am retrieving the coordinates x,y,z from a xyz file to compute a delaunay. The values have double precision.

If I print or save the values of a point, x and y have no longer double precision, but the z does. I've debugged the program and if I add a watch _expression_ as *(double*)<address of the x> I get the original, correct double value.

I've tried casting point().x() to *(double*) but of course x() returns a double, not a double*. Somehow, the precision is lost when retrieved.

Any clue?

I am using

typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Projection_traits_xy_3<K>  Gt;

typedef CGAL::Triangulation_vertex_base_2<Gt> Vb;
typedef CGAL::Delaunay_mesh_face_base_2<Gt> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> Tds;
typedef CGAL::Constrained_Delaunay_triangulation_2<Gt, Tds> CDT;

Thanks!



Archive powered by MHonArc 2.6.18.

Top of Page