Added a const.
This commit is contained in:
parent
c64c064b78
commit
2df9700bbd
|
@ -111,14 +111,14 @@ unsigned int Nexus::AddPatch(unsigned int nvert, unsigned int nface,
|
|||
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<unsigned int> &newface,
|
||||
std::vector<Link> &newbord) {
|
||||
|
||||
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++) {
|
||||
unsigned int patch = *i;
|
||||
Nexus::Entry &entry = index[patch];
|
||||
|
|
|
@ -44,7 +44,7 @@ class Nexus {
|
|||
unsigned int nbord);
|
||||
|
||||
// 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<unsigned int> &faces,
|
||||
std::vector<Link> &links);
|
||||
|
|
Loading…
Reference in New Issue