Various debug

This commit is contained in:
Federico Ponchio 2004-07-01 21:36:30 +00:00
parent 8a4da23fe9
commit 30448cd5c2
1 changed files with 8 additions and 4 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.1 2004/06/24 14:32:45 ponchio
Moved from wrap/nexus
Revision 1.1 2004/06/24 14:18:58 ponchio
Created
@ -37,8 +40,8 @@ using namespace std;
using namespace nxs;
bool VertRemap::Create(const std::string &file) {
if(all.Create(file)) return false;
if(!borders.Create(file)) return false;
if(!all.Create(file + ".vrm")) return false;
if(!borders.Create(file + ".vrb")) return false;
return true;
}
@ -67,10 +70,11 @@ unsigned int VertRemap::Count(unsigned int key) {
}
void VertRemap::Insert(unsigned int key, unsigned int value) {
if(all[key] == 0xffffffff)
if(all[key] == 0xffffffff) {
all[key] = value;
else
} else if(all[key] != value) {
borders.Insert(key, value);
}
}
unsigned int VertRemap::GetValue(unsigned int key) { //return first value