make smart handles more compatible with mixing old api

This commit is contained in:
Max Lyon
2019-10-17 12:56:48 +02:00
parent 81f3fcc2c1
commit 3b21aa14fb
3 changed files with 79 additions and 9 deletions

View File

@@ -466,9 +466,12 @@ TEST_F(OpenMeshSmartHandles, Performance)
*/
TEST_F(OpenMeshSmartHandles, MixOldAndNew)
{
for (auto heh : mesh_.halfedges())
for (OpenMesh::SmartHalfedgeHandle heh : mesh_.halfedges())
{
heh = mesh_.opposite_halfedge_handle(heh);
OpenMesh::SmartEdgeHandle eh = OpenMesh::PolyConnectivity::s_edge_handle(heh);
OpenMesh::SmartEdgeHandle eh2 = mesh_.edge_handle(heh);
OpenMesh::SmartFaceHandle fh = mesh_.face_handle(heh);
}
}