Subject: CGAL users discussion list
List archive
- From: "Joe C" <>
- To:
- Cc: "Joe C" <>
- Subject: [cgal-discuss] Polyhedron_3 I/O problem
- Date: Tue, 15 Jul 2008 16:56:51 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=UKx7+d9TsJYt5C8d3uP/amUqmDJfJJROJ1TSNSdUBXTRyiNEb0ms1Ls5TXLGRmzQFr 8Ew45uetixPGkpsnyvAEML/MuMSwHnTbOl7WrHEXXJAdAP03tbTa27UemH23GrBMWnx1 wyCZcnEQ/+wkKNsY/55QX1GsgZkSVQAstg5B4=
Hi, everyone,
I am testing a simple I/O function of Polyhedron_3. I found that the output has different results from the input. Here is the pseudo code:
// a polyhedron
Polyhedron_3 poly;
// some construction work, not listed....
// test closeness and validity before output
poly.is_closed(); // true
poly.is_valid(); // true
// output
std::ofstream SaveFile("output.off");
SaveFile << poly;
SaveFile.close();
// read in output
poly.clear();
OpenFile.open("output.off");
OpenFile >> poly;
OpenFile.close();
// test closeness and validity after output
poly.is_closed(); // true
poly.is_valid(); // false, different from original one
Notice that the polyhedron "poly" after reading in the output is no longer valid.
Is this CGAL bug or am I missing something here ? My guess is that somehow it messed up because of some numerical problem. I am using Exact_predicates_exact_constructions_kernel.
P.S. if I read in some ".off" model into Polydedron_3, do I lose the original validity of the model as well?
Thanks.
Joe
I am testing a simple I/O function of Polyhedron_3. I found that the output has different results from the input. Here is the pseudo code:
// a polyhedron
Polyhedron_3 poly;
// some construction work, not listed....
// test closeness and validity before output
poly.is_closed(); // true
poly.is_valid(); // true
// output
std::ofstream SaveFile("output.off");
SaveFile << poly;
SaveFile.close();
// read in output
poly.clear();
OpenFile.open("output.off");
OpenFile >> poly;
OpenFile.close();
// test closeness and validity after output
poly.is_closed(); // true
poly.is_valid(); // false, different from original one
Notice that the polyhedron "poly" after reading in the output is no longer valid.
Is this CGAL bug or am I missing something here ? My guess is that somehow it messed up because of some numerical problem. I am using Exact_predicates_exact_constructions_kernel.
P.S. if I read in some ".off" model into Polydedron_3, do I lose the original validity of the model as well?
Thanks.
Joe
- [cgal-discuss] Polyhedron_3 I/O problem, Joe C, 07/16/2008
- Re: [?? Probable Spam] [cgal-discuss] Polyhedron_3 I/O problem, cgal_www, 07/16/2008
- Re: [cgal-discuss] Polyhedron_3 I/O problem, Peter Hachenberger, 07/16/2008
- Re: [cgal-discuss] Polyhedron_3 I/O problem, Joe C, 07/16/2008
- Re: [cgal-discuss] Polyhedron_3 I/O problem, Peter Hachenberger, 07/16/2008
- Re: [cgal-discuss] Polyhedron_3 I/O problem, Joe C, 07/16/2008
- Re: [cgal-discuss] Polyhedron_3 I/O problem, Peter Hachenberger, 07/16/2008
- Re: [cgal-discuss] Polyhedron_3 I/O problem, Joe C, 07/16/2008
Archive powered by MHonArc 2.6.16.