Added split copy operations, which copy properties of splitted elements to the newly created ones. ( Thanks to Duncan Paterson for the patch ).
Improved documentation on the split functions refs #971 git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@683 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -178,18 +178,88 @@ public:
|
||||
|
||||
/// Edge split (= 2-to-4 split)
|
||||
/// Do not call PolyMeshT function below as this does the wrong operation
|
||||
|
||||
/** \brief Edge split (= 2-to-4 split)
|
||||
*
|
||||
* The properties of the new edges will be undefined!
|
||||
*
|
||||
* @param _eh Edge handle that should be splitted
|
||||
* @param _p New point position that will be inserted at the edge
|
||||
* @return Vertex handle of the newly added vertex
|
||||
*/
|
||||
inline VertexHandle split(EdgeHandle _eh, const Point& _p)
|
||||
{ const VertexHandle vh = this->add_vertex(_p); Kernel::split(_eh, vh); return vh; }
|
||||
|
||||
/** \brief Edge split (= 2-to-4 split)
|
||||
*
|
||||
* The properties of the new edges will be adjusted to the properties of the original edge
|
||||
*
|
||||
* @param _eh Edge handle that should be splitted
|
||||
* @param _p New point position that will be inserted at the edge
|
||||
* @return Vertex handle of the newly added vertex
|
||||
*/
|
||||
inline VertexHandle split_copy(EdgeHandle _eh, const Point& _p)
|
||||
{ const VertexHandle vh = this->add_vertex(_p); Kernel::split_copy(_eh, vh); return vh; }
|
||||
|
||||
/** \brief Edge split (= 2-to-4 split)
|
||||
*
|
||||
* The properties of the new edges will be undefined!
|
||||
*
|
||||
* @param _eh Edge handle that should be splitted
|
||||
* @param _vh Vertex handle that will be inserted at the edge
|
||||
*/
|
||||
inline void split(EdgeHandle _eh, VertexHandle _vh)
|
||||
{ Kernel::split(_eh, _vh); }
|
||||
|
||||
/// Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
|
||||
/** \brief Edge split (= 2-to-4 split)
|
||||
*
|
||||
* The properties of the new edges will be adjusted to the properties of the original edge
|
||||
*
|
||||
* @param _eh Edge handle that should be splitted
|
||||
* @param _vh Vertex handle that will be inserted at the edge
|
||||
*/
|
||||
inline void split_copy(EdgeHandle _eh, VertexHandle _vh)
|
||||
{ Kernel::split_copy(_eh, _vh); }
|
||||
|
||||
/** \brief Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
|
||||
*
|
||||
* The properties of the new faces will be undefined!
|
||||
*
|
||||
* @param _fh Face handle that should be splitted
|
||||
* @param _p New point position that will be inserted in the face
|
||||
*/
|
||||
inline void split(FaceHandle _fh, const Point& _p)
|
||||
{ PolyMesh::split(_fh, _p); }
|
||||
|
||||
/** \brief Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
|
||||
*
|
||||
* The properties of the new faces will be adjusted to the properties of the original face
|
||||
*
|
||||
* @param _fh Face handle that should be splitted
|
||||
* @param _p New point position that will be inserted in the face
|
||||
*/
|
||||
inline void split_copy(FaceHandle _fh, const Point& _p)
|
||||
{ PolyMesh::split_copy(_fh, _p); }
|
||||
|
||||
/** \brief Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
|
||||
*
|
||||
* The properties of the new faces will be undefined!
|
||||
*
|
||||
* @param _fh Face handle that should be splitted
|
||||
* @param _vh Vertex handle that will be inserted at the face
|
||||
*/
|
||||
inline void split(FaceHandle _fh, VertexHandle _vh)
|
||||
{ PolyMesh::split(_fh, _vh); }
|
||||
|
||||
/** \brief Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
|
||||
*
|
||||
* The properties of the new faces will be adjusted to the properties of the original face
|
||||
*
|
||||
* @param _fh Face handle that should be splitted
|
||||
* @param _vh Vertex handle that will be inserted at the face
|
||||
*/
|
||||
inline void split_copy(FaceHandle _fh, VertexHandle _vh)
|
||||
{ PolyMesh::split_copy(_fh, _vh); }
|
||||
|
||||
/** \name Normal vector computation
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user