Add virtual functions point(VH) / point(CH, int) to the base P3T3

This commit is contained in:
Mael Rouxel-Labbé 2022-11-18 00:19:24 +01:00
parent c8a7b8864f
commit b434490de1
1 changed files with 6 additions and 1 deletions

View File

@ -696,10 +696,13 @@ public:
// to the fundamental domain) of the vertices v and c->vertex(idx), // to the fundamental domain) of the vertices v and c->vertex(idx),
// respectively // respectively
template <class ConstructPoint> template <class ConstructPoint>
Point point(Vertex_handle v, ConstructPoint cp) const { Point point(Vertex_handle v, ConstructPoint cp) const
{
return point(periodic_point(v), cp); return point(periodic_point(v), cp);
} }
virtual Point point(Vertex_handle v) const = 0;
template <class ConstructPoint> template <class ConstructPoint>
Point point(Cell_handle c, int idx, ConstructPoint cp) const Point point(Cell_handle c, int idx, ConstructPoint cp) const
{ {
@ -757,6 +760,8 @@ public:
return Point(); return Point();
} }
virtual Point point(Cell_handle c, int idx) const = 0;
Periodic_point periodic_point(const Vertex_handle v) const Periodic_point periodic_point(const Vertex_handle v) const
{ {
if(is_1_cover()) if(is_1_cover())