Skip to content

Commit

Permalink
Use unordered_map for subdivision process edge map
Browse files Browse the repository at this point in the history
  • Loading branch information
turol committed Mar 9, 2023
1 parent b534584 commit f3767a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/Common/Subdivision.cpp
Expand Up @@ -50,6 +50,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <stdio.h>

#include <unordered_map>

using namespace Assimp;
void mydummy() {}

Expand Down Expand Up @@ -78,7 +80,7 @@ class CatmullClarkSubdivider : public Subdivider {
};

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
Expand Down

0 comments on commit f3767a4

Please sign in to comment.