Commit 4fc57878 authored by Jan Möbius's avatar Jan Möbius
Browse files

Changed the counter functions like n_vertices,n_edges,... from uint to size_t

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@542 fdac6126-5c0c-442c-9429-916003d36597
parent 6945e3ad
...@@ -265,10 +265,10 @@ public: ...@@ -265,10 +265,10 @@ public:
void clear(); void clear();
// --- number of items --- // --- number of items ---
uint n_vertices() const { return vertices_.size(); } size_t n_vertices() const { return vertices_.size(); }
uint n_halfedges() const { return 2*edges_.size(); } size_t n_halfedges() const { return 2*edges_.size(); }
uint n_edges() const { return edges_.size(); } size_t n_edges() const { return edges_.size(); }
uint n_faces() const { return faces_.size(); } size_t n_faces() const { return faces_.size(); }
bool vertices_empty() const { return vertices_.empty(); } bool vertices_empty() const { return vertices_.empty(); }
bool halfedges_empty() const { return edges_.empty(); } bool halfedges_empty() const { return edges_.empty(); }
......
...@@ -499,10 +499,10 @@ protected: // low-level access non-public ...@@ -499,10 +499,10 @@ protected: // low-level access non-public
public: //----------------------------------------------------- element numbers public: //----------------------------------------------------- element numbers
virtual unsigned int n_vertices() const { return 0; } virtual size_t n_vertices() const { return 0; }
virtual unsigned int n_halfedges() const { return 0; } virtual size_t n_halfedges() const { return 0; }
virtual unsigned int n_edges() const { return 0; } virtual size_t n_edges() const { return 0; }
virtual unsigned int n_faces() const { return 0; } virtual size_t n_faces() const { return 0; }
protected: //------------------------------------------- synchronize properties protected: //------------------------------------------- synchronize properties
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment