Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Bug with dD Triangulation stream operators?
- Date: Fri, 15 Jun 2018 09:42:02 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:pSOxahaqeuLQbK2QStASZq7/LSx+4OfEezUN459isYplN5qZr8u/bnLW6fgltlLVR4KTs6sC17KL9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa9bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAk7m/XhMx+gqFVrh2vqBNwwZLbbo6OOfpifa7QZ88WSXZPU8tTUSFKH4Oyb5EID+oEJetUoZTzqEUVohSkHgmsGOLvxSFOhnTr26M61P4hEQDB3Aw8AtkCtHXao8vyNKcXT++10LPIzDXDYfxMxTj99I/IcgohoP2JU757bM3cyVIrFwPClFWQqIvlPy+P2uQIt2iW9OVgVee1hG4mrwF9uCSgxsApioTQgI8e117K9SJ8wIkvJN24TlZ2Ydi+H5RLrC6aM5V5Ttk+TGFvvSY20rIGuZ+nfCgK1ZQo3ATTZOCAc4iN5B/oSeWfIS9giX57ZL6ygwy+/Eugx+HmS8W4zlVHojBYntTPqnwBzx7e58udRvdj8Uqs2CyD2x3X5+xKO0w5l6rWJpg8ybAqjJUTq17MHirulUX2kqCWckIk9/Ct6+v9Y7XmooaQNoFuig3iK6gulNGzDOckPgQUUGib/uO81LLn/ULnWrlFkvo2kqzBvJDbI8QUuLK5DhdL3oo/7xuzFTSr3dQCkXUaMl5IewiLg5XqNl3SOPz4CO2wg1WokDdl3fDGObjhD43WLnjHl7fhZ7d960lAyAYpyNBf44lZCr4EIP3pW0/xsMbUAQM+Mwyx2+rnEsly1psCWWKTBa+UKL/dsVCS6eIrOuWDeY4VuC3hJPg4/P7ulmQ0mUQdfKmsxZsYcmq0HvVgI0WDYHrjmM0NEWkQvll2cOu/g1KLVXtfZm25QrknzjA9EoOvS4nZFa63h7nUlhy2FJRNemFLDBioFm3pcJnMG9gBbyefPtVwvDUPSb+7Ws5rnUW1sAjgyr17aO/Q0iIdvJPnktNy4ruAxlkJ6TVoApHFgCm2RGZukzZQHm5k7OVEuUV4j2y7/+19iv1cG8ZU4qoQAAg/PJ/Yied9DoKrA16TTpKyUF+jB+6eL3QpVNtomo0BZk98H5OpiRWRh3P3UY9QrKSCAdkPyoyZ33X1IJwjmXPP1a1kkEN+B8UWZTXgial4+AzeQYXOlhfBmg==
Sorry I miss that it was a compilation issue.
It is a bug in CGAL. The fix is here:
https://github.com/CGAL/cgal/pull/3172
Sebastien.
On 06/12/2018 07:27 PM, Shabi Ma wrote:
I believe so (with the Epick_d kernel).
Here is the code for reference:
#include <fstream>
#define CGAL_EIGEN3_ENABLED
#include <CGAL/Epick_d.h>
#include <CGAL/Triangulation_vertex.h>
#include <CGAL/Triangulation_data_structure.h>
#include <CGAL/Delaunay_triangulation.h>
using namespace std;
template <unsigned int D>
using K = CGAL::Epick_d<CGAL::Dimension_tag<D>>;
template <unsigned int D>
using Vb = CGAL::Triangulation_vertex<K<D>,double>;
template <unsigned int D>
using Tds =
CGAL::Triangulation_data_structure<CGAL::Dimension_tag<D>,Vb<D>>;
template <unsigned int D>
using T = CGAL::Delaunay_triangulation<K<D>, Tds<D>>;
int main(){
T<4> test(4);
std::ofstream out("test.txt");
out << test;
std::ifstream in("test.txt");
in >> test;
return 0;
}
The errors are a long list of template substitution errors, ending with this
one:
/usr/include/CGAL/Triangulation_vertex.h:116:8: note: types
‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘const Point {aka
const CGAL::Wrap::Point_d<CGAL::Epick_d<CGAL::Dimension_tag<3> > >}’
have incompatible cv-qualifiers
is >> v.point();
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Bug with dD Triangulation stream operators?, Shabi Ma, 06/08/2018
- Re: [cgal-discuss] Bug with dD Triangulation stream operators?, Sebastien Loriot (GeometryFactory), 06/12/2018
- Re: [cgal-discuss] Bug with dD Triangulation stream operators?, Shabi Ma, 06/12/2018
- Re: [cgal-discuss] Bug with dD Triangulation stream operators?, Sebastien Loriot (GeometryFactory), 06/15/2018
- Re: [cgal-discuss] Bug with dD Triangulation stream operators?, Sebastien Loriot (GeometryFactory), 06/15/2018
- Re: [cgal-discuss] Bug with dD Triangulation stream operators?, Shabi Ma, 06/12/2018
- Re: [cgal-discuss] Bug with dD Triangulation stream operators?, Sebastien Loriot (GeometryFactory), 06/12/2018
Archive powered by MHonArc 2.6.18.