From 60bea5c9030d0f0cd74bce5db9984da4625fb784 Mon Sep 17 00:00:00 2001 From: Mike Kremer Date: Mon, 23 Nov 2009 11:19:03 +0000 Subject: [PATCH] Some minor corrections to the navigation tutorial. Added code example on how to use the opposite_halfedge_handle() function. git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@232 fdac6126-5c0c-442c-9429-916003d36597 --- Doc/Examples/nav_code4.cc | 2 +- Doc/Examples/nav_code4a.cc | 7 +++++++ Doc/mesh.docu | 2 +- Doc/navigation.docu | 4 ++++ 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 Doc/Examples/nav_code4a.cc diff --git a/Doc/Examples/nav_code4.cc b/Doc/Examples/nav_code4.cc index 6a6eb9ed..c2b8311f 100644 --- a/Doc/Examples/nav_code4.cc +++ b/Doc/Examples/nav_code4.cc @@ -2,7 +2,7 @@ OpenMesh::PolyConnectivity::opposite_face_handle(); // Get the handle to the opposite halfedge -OpenMesh::Concepts::KernelT< FinalMeshItems >::opposite_halfedge_handle(); +OpenMesh::Concepts::KernelT::opposite_halfedge_handle(); // Get the opposite vertex to the opposite halfedge OpenMesh::TriConnectivity::opposite_he_opposite_vh(); diff --git a/Doc/Examples/nav_code4a.cc b/Doc/Examples/nav_code4a.cc new file mode 100644 index 00000000..96f1127a --- /dev/null +++ b/Doc/Examples/nav_code4a.cc @@ -0,0 +1,7 @@ +// Get the halfedge handle of i.e. the halfedge +// that is associated to the first vertex +// of our set of vertices +PolyMesh::HalfedgeHandle heh = mesh.halfedge_handle(mesh.vertices_begin().handle()); + +// Now get the handle of its opposing halfedge +PolyMesh::HalfedgeHandle opposite_heh = mesh.opposite_halfedge_handle(heh); diff --git a/Doc/mesh.docu b/Doc/mesh.docu index 65ba173b..59b1cbad 100644 --- a/Doc/mesh.docu +++ b/Doc/mesh.docu @@ -1,7 +1,7 @@ //----------------------------------------------------------------------------- -/** \page mesh_first_to_read Start here (Notes about template programming)! +/** \page mesh_first_to_read Start here (Notes on template programming)! Please note, that %OpenMesh makes heavily use of C++ templates, generic programming and all that stuff (see \ref mesh_cpp). Therefore diff --git a/Doc/navigation.docu b/Doc/navigation.docu index 12d596da..53cee4ad 100644 --- a/Doc/navigation.docu +++ b/Doc/navigation.docu @@ -90,6 +90,10 @@ return the red halfedge: \image html mesh.opp.png +Use this function as described in the example below: + +\include nav_code4a.cc + There are also a few more functions that offer easy access to opposing structures: \include nav_code4.cc