Use unordered_map for subdivision process edge map
parent
b534584198
commit
f3767a4eb2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue