src/vertexmap.cpp

changeset 259
c27612f0eac0
parent 250
2837b549e616
child 264
76a025db4948
--- a/src/vertexmap.cpp	Wed Jun 22 23:51:06 2022 +0300
+++ b/src/vertexmap.cpp	Sun Jun 26 19:44:45 2022 +0300
@@ -1,7 +1,7 @@
 #include "vertexmap.h"
 #include "gl/common.h"
 
-unsigned int hashVertex(const glm::vec3& vec)
+hash_t hashVertex(const glm::vec3& vec)
 {
 	return qHash(glm::ivec3{
 		int(vec.x * 10000),
@@ -130,7 +130,7 @@
 				return glm::mat4{{a, 0}, {-c, 0}, {d, 0}, {}};
 			});
 		points(element, [&](const glm::vec3 point) {
-			const unsigned int hash = hashVertex(point);
+			const hash_t hash = hashVertex(point);
 			VertexInfo& info = this->map[hash];
 			info.point = point;
 			info.objects.insert(this->model->idAt(i));

mercurial