Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Point precision
- Date: Thu, 26 Nov 2015 13:54:36 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:TgVLEBzWg+F9haDXCy+O+j09IxM/srCxBDY+r6Qd0ewSIJqq85mqBkHD//Il1AaPBtWGraIcwLaN+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStOU35z8i7v60qaQSjsLrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYeVcyDAgD1uSmxHh+pX4p8Y7oGwD884mosVPWKG/c6UjRqFDFxwnNXo07Yvlr0rtVwyKszEnX28fiQZJDg6NyBbgX5Dt+mvVu+141TWALOP/RqwzQyXjpe8/UxvvkiYAK3g89EnYj8VxiORQpxf39E83+JLdfIzAbKk2RajaZ95PHWc=
- Organization: GeometryFactory
I don't think there is anything specific to CGAL according to the
typedefs you shown. Maybe first check that after inserting a vertex
the coordinates are what you expect. Also make sure the precision
of the stream is good enough.
Sebastien.
On 11/26/2015 01:29 PM, Pol Monsó Purtí Helimap wrote:
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!
- [cgal-discuss] Point precision, Pol Monsó Purtí Helimap, 11/26/2015
- Re: [cgal-discuss] Point precision, Sebastien Loriot (GeometryFactory), 11/26/2015
- Re: [cgal-discuss] Point precision, Pol Monsó Purtí Helimap, 11/26/2015
- Re: [cgal-discuss] Point precision, Pol Monsó Purtí Helimap, 11/26/2015
- Re: [cgal-discuss] Point precision, Daniel Duque, 11/26/2015
- Re: [cgal-discuss] Point precision, Pol Monsó Purtí Helimap, 11/26/2015
- Re: [cgal-discuss] Point precision, Sebastien Loriot (GeometryFactory), 11/26/2015
Archive powered by MHonArc 2.6.18.