Developer Documentation
MeshNavigationT.hh File Reference

Functions for getting information about a mesh. More...

#include <vector>

Go to the source code of this file.

Functions

template<typename MeshT >
MeshT::HalfedgeHandle MeshNavigation::opposite_halfedge (MeshT &_mesh, typename MeshT::HalfedgeHandle _he)
 
template<typename MeshT >
MeshT::VertexHandle MeshNavigation::findClosestBoundary (MeshT *_mesh, typename MeshT::VertexHandle _vh)
 Find the closest boundary vertex to another vertex. More...
 

Detailed Description

Functions for getting information about a mesh.

Functions for Navigation on a Mesh.

Definition in file MeshNavigationT.hh.

Function Documentation

◆ findClosestBoundary()

template<typename MeshT >
MeshT::VertexHandle MeshNavigation::findClosestBoundary ( MeshT *  _mesh,
typename MeshT::VertexHandle  _vh 
)
inline

Find the closest boundary vertex to another vertex.

This function will start at a single vertex and walk across the edges of the mesh to find a vertex on the boundary. The vertex at the boundary with the minimal number of edges to be traversed to reach the starting vertex is returned. If no vertex is found (i.e. no boundary), an invalid VertexHandle is returned.

Parameters
_meshMesh to work on
_vhStart vertex handle
Returns
Closest vertex at the boundary

Definition at line 83 of file MeshNavigationT_impl.hh.

◆ opposite_halfedge()

template<typename MeshT >
MeshT::HalfedgeHandle MeshNavigation::opposite_halfedge ( MeshT &  _mesh,
typename MeshT::HalfedgeHandle  _he 
)
inline

For Valence 6 Vertices Only!! iterates 3 Halfedges around from Vertex of _he. Returns the he on the other side

Parameters
_meshMesh to work on
_heOutgoing halfedge of Vertex to iterate around
Returns
Halfedge on the opposite side

Definition at line 72 of file MeshNavigationT_impl.hh.