Merge branch 'fix_opposite_face_handle' into 'master'

Fix opposite face handle

See merge request OpenMesh/OpenMesh!252
This commit is contained in:
Jan Möbius
2020-03-17 20:52:44 +01:00
3 changed files with 6 additions and 14 deletions

View File

@@ -99,13 +99,6 @@ bool PolyConnectivity::is_manifold(VertexHandle _vh) const
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
SmartFaceHandle PolyConnectivity::opposite_face_handle(HalfedgeHandle _heh) const
{
return face_handle(make_smart(opposite_halfedge_handle(_heh), this));
}
//-----------------------------------------------------------------------------
void PolyConnectivity::adjust_outgoing_halfedge(VertexHandle _vh) void PolyConnectivity::adjust_outgoing_halfedge(VertexHandle _vh)
{ {
for (ConstVertexOHalfedgeIter vh_it=cvoh_iter(_vh); vh_it.is_valid(); ++vh_it) for (ConstVertexOHalfedgeIter vh_it=cvoh_iter(_vh); vh_it.is_valid(); ++vh_it)

View File

@@ -611,6 +611,9 @@ public:
inline SmartEdgeHandle edge_handle(SmartHalfedgeHandle _heh) const; inline SmartEdgeHandle edge_handle(SmartHalfedgeHandle _heh) const;
inline SmartFaceHandle face_handle(SmartHalfedgeHandle _heh) const; inline SmartFaceHandle face_handle(SmartHalfedgeHandle _heh) const;
/// returns the face handle of the opposite halfedge
inline SmartFaceHandle opposite_face_handle(HalfedgeHandle _heh) const;
//@} //@}
/** \name Begin and end iterators /** \name Begin and end iterators
@@ -1355,11 +1358,6 @@ public:
/** @} */ /** @} */
// --- shortcuts ---
/// returns the face handle of the opposite halfedge
inline SmartFaceHandle opposite_face_handle(HalfedgeHandle _heh) const;
// --- misc --- // --- misc ---
/** Adjust outgoing halfedge handle for vertices, so that it is a /** Adjust outgoing halfedge handle for vertices, so that it is a

View File

@@ -68,6 +68,7 @@ inline SmartHalfedgeHandle PolyConnectivity::halfedge_handle(SmartVertexHandle _
inline SmartFaceHandle PolyConnectivity::face_handle(SmartHalfedgeHandle _heh) const { return make_smart(face_handle(HalfedgeHandle(_heh)), *this); } inline SmartFaceHandle PolyConnectivity::face_handle(SmartHalfedgeHandle _heh) const { return make_smart(face_handle(HalfedgeHandle(_heh)), *this); }
inline SmartFaceHandle PolyConnectivity::opposite_face_handle(HalfedgeHandle _heh) const { return make_smart(face_handle(opposite_halfedge_handle(_heh)), *this); }
/// Generic class for vertex/halfedge/edge/face ranges. /// Generic class for vertex/halfedge/edge/face ranges.