Various debug
This commit is contained in:
parent
8a4da23fe9
commit
30448cd5c2
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.1 2004/06/24 14:18:58 ponchio
|
||||||
Created
|
Created
|
||||||
|
|
||||||
|
@ -37,8 +40,8 @@ using namespace std;
|
||||||
using namespace nxs;
|
using namespace nxs;
|
||||||
|
|
||||||
bool VertRemap::Create(const std::string &file) {
|
bool VertRemap::Create(const std::string &file) {
|
||||||
if(all.Create(file)) return false;
|
if(!all.Create(file + ".vrm")) return false;
|
||||||
if(!borders.Create(file)) return false;
|
if(!borders.Create(file + ".vrb")) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,11 +70,12 @@ unsigned int VertRemap::Count(unsigned int key) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void VertRemap::Insert(unsigned int key, unsigned int value) {
|
void VertRemap::Insert(unsigned int key, unsigned int value) {
|
||||||
if(all[key] == 0xffffffff)
|
if(all[key] == 0xffffffff) {
|
||||||
all[key] = value;
|
all[key] = value;
|
||||||
else
|
} else if(all[key] != value) {
|
||||||
borders.Insert(key, value);
|
borders.Insert(key, value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
unsigned int VertRemap::GetValue(unsigned int key) { //return first value
|
unsigned int VertRemap::GetValue(unsigned int key) { //return first value
|
||||||
assert(key < Size());
|
assert(key < Size());
|
||||||
|
|
Loading…
Reference in New Issue