- marked current_halfedge_handle as deprecated
- updated code to fix related warnings - added some unittests to ensure unchanged behaviour when replacing current_halfedge_handle git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@917 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -57,9 +57,9 @@ PolyConnectivity::find_halfedge(VertexHandle _start_vh, VertexHandle _end_vh ) c
|
||||
{
|
||||
assert(_start_vh.is_valid() && _end_vh.is_valid());
|
||||
|
||||
for (ConstVertexVertexIter vvIt=cvv_iter(_start_vh); vvIt.is_valid(); ++vvIt)
|
||||
if (*vvIt == _end_vh)
|
||||
return vvIt.current_halfedge_handle();
|
||||
for (ConstVertexOHalfedgeIter voh_it = cvoh_iter(_start_vh); voh_it.is_valid(); ++voh_it)
|
||||
if (to_vertex_handle(*voh_it) == _end_vh)
|
||||
return *voh_it;
|
||||
|
||||
return InvalidHalfedgeHandle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user