Added a const.

This commit is contained in:
Federico Ponchio 2004-07-20 14:04:38 +00:00
parent c64c064b78
commit 2df9700bbd
2 changed files with 3 additions and 3 deletions

View File

@ -111,14 +111,14 @@ unsigned int Nexus::AddPatch(unsigned int nvert, unsigned int nface,
return index.size() -1; return index.size() -1;
} }
void Nexus::Join(std::vector<unsigned int> &patches, void Nexus::Join(const std::vector<unsigned int> &patches,
std::vector<Point3f> &newvert, std::vector<Point3f> &newvert,
std::vector<unsigned int> &newface, std::vector<unsigned int> &newface,
std::vector<Link> &newbord) { std::vector<Link> &newbord) {
map<unsigned int, vector<unsigned int> > remap; map<unsigned int, vector<unsigned int> > remap;
vector<unsigned int>::iterator i; vector<unsigned int>::const_iterator i;
for(i = patches.begin(); i != patches.end(); i++) { for(i = patches.begin(); i != patches.end(); i++) {
unsigned int patch = *i; unsigned int patch = *i;
Nexus::Entry &entry = index[patch]; Nexus::Entry &entry = index[patch];

View File

@ -44,7 +44,7 @@ class Nexus {
unsigned int nbord); unsigned int nbord);
// unsigned int Join(std::vector<unsigned int> &patches); // unsigned int Join(std::vector<unsigned int> &patches);
void Join(std::vector<unsigned int> &patches, void Join(const std::vector<unsigned int> &patches,
std::vector<vcg::Point3f> &vert, std::vector<vcg::Point3f> &vert,
std::vector<unsigned int> &faces, std::vector<unsigned int> &faces,
std::vector<Link> &links); std::vector<Link> &links);