mirror of
https://github.com/Relintai/props_2d.git
synced 2025-02-04 16:15:57 +01:00
Cleanups.
This commit is contained in:
parent
9cd631a36c
commit
3cde50a5c5
@ -284,8 +284,6 @@ void Prop2DMesher::remove_doubles() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//print_error("after " + String::num(_vertices.size())+ " " + String::num(duration.count()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//lot faster that normal remove_doubles, but false positives can happen curtesy of hash collisions
|
//lot faster that normal remove_doubles, but false positives can happen curtesy of hash collisions
|
||||||
@ -293,8 +291,6 @@ void Prop2DMesher::remove_doubles_hashed() {
|
|||||||
if (_vertices.size() == 0)
|
if (_vertices.size() == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//print_error("before " + String::num(_vertices.size()));
|
|
||||||
|
|
||||||
PoolVector<uint32_t> hashes;
|
PoolVector<uint32_t> hashes;
|
||||||
hashes.resize(_vertices.size());
|
hashes.resize(_vertices.size());
|
||||||
for (int i = 0; i < _vertices.size(); ++i) {
|
for (int i = 0; i < _vertices.size(); ++i) {
|
||||||
@ -337,8 +333,6 @@ void Prop2DMesher::remove_doubles_hashed() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//print_error("after " + String::num(_vertices.size()) + " " + String::num(duration.count()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Prop2DMesher::reset() {
|
void Prop2DMesher::reset() {
|
||||||
|
Loading…
Reference in New Issue
Block a user