Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Bug with dD Triangulation stream operators?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Bug with dD Triangulation stream operators?


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Bug with dD Triangulation stream operators?
  • Date: Fri, 15 Jun 2018 09:23:32 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:8L5Orhb9Sg+FbTjhmq2U+9L/LSx+4OfEezUN459isYplN5qZr8i5bnLW6fgltlLVR4KTs6sC17KL9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa9bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAk7m/XhMx+gqFVrh2vqBNwwZLbbo6OOfpifa7QZ88WSXZPU8tTUSFKH4Oyb5EID+oEJetUoZTzqEUVohSkHgmsGOLvxSFOhnTr26M61P4hEQDB3Aw8AtkCtHXao8vyNKcXT++10LPIzDXDYfxMxTj99I/IcgohoP2JU757bM3cyVIrFwPClFWQqIvlPy+P2uQIt2iW9OVgVee1hG4mrwF9uCSgxsApioTQgI8e117K9SJ8wIkvJN24TlZ2Ydi+H5RLrC6aM5V5Ttk+TGFvvSY3zKANt52jfCUSypkqyATTZ+GZf4WI+B7uV/idLS13iX9rYL6yhRW//VK+xuDzV8S4yktGoy5Ln9XWtH0A1xre4dWdRPRn5EeuwzOP2hjT6u5aJUA0krLWK5s7zb4xkpofqErCHirqlEnvgq+beUsp9vKn6+TgZbXmqZucOJFuhg7iNaQun9SzAeU+MgcQQ2iW4eax2bL58UHkXrlHjuc6n6rHvJzAKskWqLa1AwpP3YYi7xa/AS2m0NMdnXQfN1JFfBWHj5LoO1HJPPD0F/K/g1C3nTdkwvDJJLzhApHXInffl7fheK5x61RAxwor0dBf+5VUB6kdL/L8QEDxsMXUAQI4Mwyv3+nnFc591pgFVGKUAq6ZNbvSvkWS6uIuJemMfo4VtyznJ/gr/f69xUM+zFQSdK3s0ZoMY22jBdxnJV+YaDzimIQvC2AP60AFQebjk0GDXDgbQ3GoXqUgrnEUBYWjAJvZV66ki6CGxjb6VNUCfWRBEFGLDTHtc62LXv4NbGSZJco3wW9MbqSoV4J0jULmjwT90bcydrOFqB1djorq0Z1O38OWkBgz8TJuCMHEijOCSmh1miUDQDpkhfkj83w48U+K1O1Du9IdDcZavqobXQIzNJqaxOt/WYirB1DxO+yRQVPjee2IRDE8StVrno0Lakd5Xsqn1lXNg3HsDLgSmLiGQpcz9/CE0g==

Did you try out.close() before reading the file again?

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&lt;D>>;
template <unsigned int D>
using Vb = CGAL::Triangulation_vertex<K&lt;D>,double>;
template <unsigned int D>
using Tds =
CGAL::Triangulation_data_structure<CGAL::Dimension_tag&lt;D>,Vb<D>>;
template <unsigned int D>
using T = CGAL::Delaunay_triangulation<K&lt;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&lt;CGAL::Dimension_tag&lt;3> > >}’
have incompatible cv-qualifiers
is >> v.point();




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/




Archive powered by MHonArc 2.6.18.

Top of Page