Commit 0ef541d2 authored by Jan Möbius's avatar Jan Möbius

Return vertex handles of newly added vertices in split and split copy when...

Return vertex handles of newly added vertices in split and split copy when passing points instead of handles

closes #1316



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@769 fdac6126-5c0c-442c-9429-916003d36597
parent 214c66a6
......@@ -308,9 +308,11 @@ public:
*
* @param _fh Face handle that should be splitted
* @param _p New point position that will be inserted in the face
*
* @return Vertex handle of the new vertex
*/
inline void split(FaceHandle _fh, const Point& _p)
{ PolyMesh::split(_fh, _p); }
inline VertexHandle split(FaceHandle _fh, const Point& _p)
{ const VertexHandle vh = this->add_vertex(_p); PolyMesh::split(_fh, vh); return vh; }
/** \brief Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
*
......@@ -318,9 +320,11 @@ public:
*
* @param _fh Face handle that should be splitted
* @param _p New point position that will be inserted in the face
*
* @return Vertex handle of the new vertex
*/
inline void split_copy(FaceHandle _fh, const Point& _p)
{ PolyMesh::split_copy(_fh, _p); }
inline VertexHandle split_copy(FaceHandle _fh, const Point& _p)
{ const VertexHandle vh = this->add_vertex(_p); PolyMesh::split_copy(_fh, _p); return vh; }
/** \brief Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment