Subject: CGAL users discussion list
List archive
- From: Thiago Milanetto Schlittler <>
- To:
- Cc:
- Subject: [cgal-discuss] Reading Triangulation from File
- Date: Wed, 9 Sep 2015 11:09:54 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:oVHYChV8HwKhbhJKjIZoFNYbDKvV8LGtZVwlr6E/grcLSJyIuqrYZxSAt8tkgFKBZ4jH8fUM07OQ6PC8HzVcqs7e+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8GVOlkD3GX1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu2pN5k+VqFSWTQ6L3gutoqsrgjGVQLJ530GU2xQnAAPGBnA9Bi9X5H/tWzxueN5nSWbJsbrVqtnZTP35KhiTFrkiTwMKiUi2GDRkM15yqxB8zy7oBkq/47VaY6SfN9/eqrbcM8GQiJ6VcZVVjBdBo6mJ98TD+sIMuFdtNLVqF4HrB/4Dg6pUrC8ggRUj2P7iPVpm98qFhvLiVQt
Hello!
There is no "Triangulation::new_vertex()” method - and the
"Triangulation::new_vertex(const Point & p)", while present in the
“Triangulation.h” file, does not seem to be documented in CGAL’s manual. To
add a vertex without a point, you have to access directly the triangulation
data structure, using “YourTriangulation.tds()”. This should do the trick:
VertexHandle vertex = YourTriangulation.tds().new_vertex();
Hope this helps.
Thiago
> On 09 Sep 2015, at 10:21, Scherrer Daniel
> <>
> wrote:
>
> 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
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
- [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.