Use unordered_map for subdivision process edge map

pull/4978/head^2
Turo Lamminen 2023-03-08 16:18:10 +02:00 committed by Turo Lamminen
parent b534584198
commit f3767a4eb2
1 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h> #include <stdio.h>
#include <unordered_map>
using namespace Assimp; using namespace Assimp;
void mydummy() {} void mydummy() {}
@ -78,7 +80,7 @@ public:
}; };
typedef std::vector<unsigned int> UIntVector; typedef std::vector<unsigned int> UIntVector;
typedef std::map<uint64_t, Edge> EdgeMap; typedef std::unordered_map<uint64_t, Edge> EdgeMap;
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Hashing function to derive an index into an #EdgeMap from two given // Hashing function to derive an index into an #EdgeMap from two given