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:
@@ -384,6 +384,7 @@ void TriConnectivity::flip(EdgeHandle _eh)
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
void TriConnectivity::split(EdgeHandle _eh, VertexHandle _vh)
|
||||
{
|
||||
HalfedgeHandle h0 = halfedge_handle(_eh, 0);
|
||||
@@ -479,4 +480,17 @@ void TriConnectivity::split(EdgeHandle _eh, VertexHandle _vh)
|
||||
set_halfedge_handle(v2, t1);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
void TriConnectivity::split_copy(EdgeHandle _eh, VertexHandle _vh)
|
||||
{
|
||||
// Split the halfedge ( handle will be preserved)
|
||||
split(_eh, _vh);
|
||||
|
||||
// Copy the properties of the original edge to all neighbor edges that
|
||||
// have been created
|
||||
for(VEIter ve_it = ve_iter(_vh); ve_it; ++ve_it)
|
||||
copy_all_properties(_eh, ve_it);
|
||||
}
|
||||
|
||||
}// namespace OpenMesh
|
||||
|
||||
Reference in New Issue
Block a user