Subject: CGAL users discussion list
List archive
- From: Pol Monsó Purtí Helimap <>
- To:
- Subject: Re: [cgal-discuss] Point precision
- Date: Thu, 26 Nov 2015 14:02:11 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:0/xRThcbSl+fbax19HHsN516lGMj4u6mDksu8pMizoh2WeGdxc+6YB7h7PlgxGXEQZ/co6odzbGG7uawASdcut6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDvvc2LKFkTzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3Heb8lR+lYECg+KDJyo9b6sAHKCwqJ/HoVFGsM1QFZBhDMqxD8UJC2uSTzsq9x2TKRINbtHowzDD+t5qMuRB7zgzocLBY49nvWg4p+lvF1uhWk8iR4x7nxZ4eOr81GY7nB+OQ6SG5AW89JH3hZBYf6aowJFO0pPetcroz0vx0FrU3tVkGXGOrzx2oQ1TfN1qog3rF5HA==
It was a much silly thing,
outstream << std::fixed << setprecision(4);
fixes it.On Thu, Nov 26, 2015 at 1:54 PM, Sebastien Loriot (GeometryFactory) <> wrote:
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!
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [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.