diff --git a/src/patchkernel/patch_kernel.cpp b/src/patchkernel/patch_kernel.cpp index e6d2e1d43b..52f32aa2f5 100644 --- a/src/patchkernel/patch_kernel.cpp +++ b/src/patchkernel/patch_kernel.cpp @@ -1511,6 +1511,30 @@ PatchKernel::VertexConstIterator PatchKernel::vertexConstEnd() const return m_vertices.cend(); } +/*! + Returns a constant iterator pointing to the first internal vertex. + + \result A constant iterator to the first internal vertex. +*/ +PatchKernel::VertexConstIterator PatchKernel::internalVertexConstBegin() const +{ + return m_vertices.cbegin(); +} + +/*! + Returns a constant iterator pointing to last internal vertex. + + \result A constant iterator to the last internal vertex. +*/ +PatchKernel::VertexConstIterator PatchKernel::internalVertexConstEnd() const +{ + if (m_nInternalVertices > 0) { + return ++m_vertices.find(m_lastInternalVertexId); + } else { + return m_vertices.end(); + } +} + /*! Adds the specified vertex to the patch.