Subject: CGAL users discussion list
List archive
- From: Scherrer Daniel <>
- To: "" <>
- Subject: [cgal-discuss] Reading Triangulation from File
- Date: Wed, 9 Sep 2015 10:21:19 +0200
- Accept-language: en-US, de-CH
- Acceptlanguage: en-US, de-CH
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:vsBZixCNmjiiJQ0QNq9NUyQJP3N1i/DPJgcQr6AfoPdwSP78pMbcNUDSrc9gkEXOFd2CrakU16yP6Ou5AjdIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/ni6broNaKOF4ArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIYTGZn9Ku4zQrVcSTgnKGso/9bDtB/ZTALJ6GFWGjEdnRNMRgTE9xrnRYzZsy3gt+M71jPMbuPsSrVhYj+i4r1xRQWgpC4BNjM9uDX7g8pxgaYdmxmhqgZlzpT8e4qOcvF+KPCONegGTHZMC54CHxdKBZmxOtMC
Hello
I am trying to write a triangulation to a file and to read it from there
again. I thought this can be done simply like this:
outfile << triangulation_;
and later
infile >> triangulation_;
Writing works fine, but using the read operator gives a compiler error:
1>C:\Program Files\CGAL-4.6.2\include\CGAL/Triangulation.h(1270): error
C2660:
'CGAL::Triangulation<DCTraits,CGAL::Triangulation_data_structure<CGAL::Dimension_tag<6>,CGAL::Triangulation_vertex<DCTraits,CGAL::No_vertex_data,CGAL::Default>,CGAL::Triangulation_full_cell<hapticmolecules::LinearLandscape6D::K,CGAL::No_full_cell_data,CGAL::Default>>>::new_vertex'
: function does not take 0 arguments
1> with
1> [
1> DCTraits=hapticmolecules::LinearLandscape6D::K
1> ]
1> src\datalandscape6D\LinearLandscape6D.cpp(246) : see reference to
function template instantiation 'std::istream &CGAL::operator
>><DCTraits,CGAL::Triangulation_data_structure<CGAL::Dimension_tag<6>,CGAL::Triangulation_vertex<DCTraits,CGAL::No_vertex_data,CGAL::Default>,CGAL::Triangulation_full_cell<hapticmolecules::LinearLandscape6D::K,CGAL::No_full_cell_data,CGAL::Default>>>(std::istream
&,CGAL::Triangulation<DCTraits,CGAL::Triangulation_data_structure<CGAL::Dimension_tag<6>,CGAL::Triangulation_vertex<DCTraits,CGAL::No_vertex_data,CGAL::Default>,CGAL::Triangulation_full_cell<hapticmolecules::LinearLandscape6D::K,CGAL::No_full_cell_data,CGAL::Default>>>
&)' being compiled
1> with
1> [
1> DCTraits=hapticmolecules::LinearLandscape6D::K
1> ]
It seems there is no "Triangulation::new_vertex()" but only a
"Triangulation::new_vertex(const Point & p)". Shouldn't there be a version of
this method without an argument, as the point will be read in a later step?
Thanks,
Daniel
- [cgal-discuss] Reading Triangulation from File, Scherrer Daniel, 09/09/2015
- [cgal-discuss] Reading Triangulation from File, Thiago Milanetto Schlittler, 09/09/2015
Archive powered by MHonArc 2.6.18.