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
This commit is contained in:
@@ -308,9 +308,11 @@ public:
|
|||||||
*
|
*
|
||||||
* @param _fh Face handle that should be splitted
|
* @param _fh Face handle that should be splitted
|
||||||
* @param _p New point position that will be inserted in the face
|
* @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)
|
inline VertexHandle split(FaceHandle _fh, const Point& _p)
|
||||||
{ PolyMesh::split(_fh, _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).
|
/** \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 _fh Face handle that should be splitted
|
||||||
* @param _p New point position that will be inserted in the face
|
* @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)
|
inline VertexHandle split_copy(FaceHandle _fh, const Point& _p)
|
||||||
{ PolyMesh::split_copy(_fh, _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).
|
/** \brief Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user