Moved code from header to cc file

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@847 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-07-23 14:23:12 +00:00
parent b1c206793b
commit 3912532758
4 changed files with 146 additions and 44 deletions

View File

@@ -120,19 +120,19 @@ public:
FaceHandle handle(const Face& _f) const;
#define SIGNED(x) signed( (x) )
//checks handle validity - useful for debugging
bool is_valid_handle(VertexHandle _vh) const
{ return 0 <= _vh.idx() && _vh.idx() < SIGNED(n_vertices()); }
bool is_valid_handle(HalfedgeHandle _heh) const
{ return 0 <= _heh.idx() && _heh.idx() < SIGNED(n_edges()*2); }
///checks handle validity - useful for debugging
bool is_valid_handle(VertexHandle _vh) const;
bool is_valid_handle(EdgeHandle _eh) const
{ return 0 <= _eh.idx() && _eh.idx() < SIGNED(n_edges()); }
///checks handle validity - useful for debugging
bool is_valid_handle(HalfedgeHandle _heh) const;
///checks handle validity - useful for debugging
bool is_valid_handle(EdgeHandle _eh) const;
///checks handle validity - useful for debugging
bool is_valid_handle(FaceHandle _fh) const;
bool is_valid_handle(FaceHandle _fh) const
{ return 0 <= _fh.idx() && _fh.idx() < SIGNED(n_faces()); }
// --- item -> handle ---
const Vertex& vertex(VertexHandle _vh) const
@@ -183,8 +183,6 @@ public:
return faces_[_fh.idx()];
}
#undef SIGNED
// --- get i'th items ---
VertexHandle vertex_handle(unsigned int _i) const