Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem
- Date: Fri, 9 Feb 2018 08:26:13 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:uBFiqxYre2mh/9ipLvRzgTH/LSx+4OfEezUN459isYplN5qZr8y/bnLW6fgltlLVR4KTs6sC17KP9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCagbb9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAk7m/XhMx+gqFVrh2vqBNwwZLbbo6OOfpifa7QZ88WSXZPU8tTUSFKH4Oyb5EID+oEJetVs4/9qEYUrRSgHwasH/7kxD9SiXDtx6060vkqHAbc0wwmAt0Oqmrbo8/uNKsIX+C61rLHzS/Cb/5N1jfy9o/IchU/rvGQR7JxccTRxlMzGAPZiVWQs4zkMymJ2eQKtmiW9uxtXv+shW4/swx8rTmiyt0xhoXVho8Z0FLJ+TtjzIs6KtC0UFN3bNqqHZdKqi2WK4R7TtksTm11oio216EKtYO9cSMX0poo3QTfZOaCc4WQ4hLsSuKRITBgiX9hYr6/ghGy/VWix+DyTMW01UxFritBktXVsXANygDT5tKASvtj/ketwzCP2B7P6u1cIEA0k7TUK4I5z7M/l5cfq1nPEjP2lUnsjqKaaF8o9+en5uj/Z7XpvJ6cN4t6igHkNaQun9SyDv4+MgcTRWiU5/6z1Kb58U33WrpFlec2kqjCvZDVO8sboau5DBFJ0oY56xe/AS2p38gEnXkANlJEeAiLgJTuO1HLOPz4F+uwg0ywkDd3wPDLJqHuAprXIXjHibvuYLd961VAxwou1tBf/IlZCqoBIfL2Qk/+rsbUDh4/MwyuwuboEs9x1o0EWTHHPqjMO6zbtRqE5/kkPvKXTI4Tojf0bfY/tND0inpssFkRZ6SgxtM5YXqiH7wyKkOVe3flmZEPGG0QvyIxQevvhUGYQDBabGq1RbN67TY+XtH1RbzfT5yg1eTSlBywGYdbMzgfWwK8VEzwfoDBYM8iLSebI8tviDsBD+HzRIIm0Byyrh70wrF7KfDFvCYfsMC7jYQn16jojRg3sAdMIYGFyWjXFjN7k2QNSiMsza52qlB60EbF2q990aQBSI5joshRWwJ/Dqbyiux3D9eoBFCQONKOEQn9BNCvADV0Sc8thdgQYwB7Fsnw1h0=
On 2/9/2018 8:22 AM, Sebastien Loriot (GeometryFactory) wrote:
On 02/09/2018 03:41 AM, williamlai3a wrote:
Hi All,
I am a newbie to CGAL, I am trying code from CGAL github master build
(v4.12) to do 3D point set processing.
I am using the following:
[snip]
Problem 1:
Seems to me that the output is being trimmed to 6 significant figure.
Are there any ways to output much higher significant figure, say 12?
6 is the default precision of the stream. You can increase the precision
(the max being 17 if you want to guarantee that a value will be identical to the one wrote when you read it).
Try something like:
std::ofstream output("out.xyz");
output << std::setprecision(17);
Sébastien,
I suggest that we add that line here:
examples/Point_set_processing_3/read_write_xyz_point_set_example.cpp
Best,
Andreas
- [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, williamlai3a, 02/09/2018
- Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, Sebastien Loriot (GeometryFactory), 02/09/2018
- Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, Andreas Fabri, 02/09/2018
- Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, williamlai3a, 02/12/2018
- Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, williamlai3a, 02/12/2018
- Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, Simon Giraudot, 02/12/2018
- Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, williamlai3a, 02/20/2018
- Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, Simon Giraudot, 02/12/2018
- Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, williamlai3a, 02/12/2018
- Re: [cgal-discuss] CGAL::write_xyz_point_set precision and normal problem, Sebastien Loriot (GeometryFactory), 02/09/2018
Archive powered by MHonArc 2.6.18.