Skip to content

Commit 9c9fc5f

Browse files
committed
derived class function names partially hiding base class functions in PMPMesh
1 parent 485c226 commit 9c9fc5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/lvr2/geometry/PMPMesh.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class PMPMesh : public BaseMesh<BaseVecT>
6262
using Edge = pmp::Halfedge;
6363
using Face = pmp::Face;
6464
using Vertex = pmp::Vertex;
65+
using Base = BaseMesh<BaseVecT>;
6566

6667
PMPMesh()
6768
{}
@@ -202,8 +203,15 @@ class PMPMesh : public BaseMesh<BaseVecT>
202203
void getNeighboursOfFace(FaceHandle handle, vector<FaceHandle>& facesOut) const override;
203204
array<VertexHandle, 2> getVerticesOfEdge(EdgeHandle edgeH) const override;
204205
array<OptionalFaceHandle, 2> getFacesOfEdge(EdgeHandle edgeH) const override;
206+
207+
// Explicitly mention these functions, as the base class's
208+
// returning versions are hidden by the non-returning functions
209+
// with the same names in this class
210+
using Base::getFacesOfVertex;
205211
void getFacesOfVertex(VertexHandle handle, vector<FaceHandle>& facesOut) const override;
212+
using Base::getEdgesOfVertex;
206213
void getEdgesOfVertex(VertexHandle handle, vector<EdgeHandle>& edgesOut) const override;
214+
using Base::getNeighboursOfVertex;
207215
void getNeighboursOfVertex(VertexHandle handle, vector<VertexHandle>& verticesOut) const override;
208216
OptionalFaceHandle getOppositeFace(FaceHandle faceH, VertexHandle vertexH) const override;
209217
OptionalEdgeHandle getOppositeEdge(FaceHandle faceH, VertexHandle vertexH) const override;

0 commit comments

Comments
 (0)