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/--

You are currently subscribed to cgal-discuss.

To unsubscribe or access the archives, go to

https://sympa.inria.fr/sympa/info/cgal-discuss