128 const glm::vec3 c = glm::normalize(glm::cross(a, b)); |
128 const glm::vec3 c = glm::normalize(glm::cross(a, b)); |
129 const glm::vec3 d = glm::normalize(glm::cross(a, c)); |
129 const glm::vec3 d = glm::normalize(glm::cross(a, c)); |
130 return glm::mat4{{a, 0}, {-c, 0}, {d, 0}, {}}; |
130 return glm::mat4{{a, 0}, {-c, 0}, {d, 0}, {}}; |
131 }); |
131 }); |
132 points(element, [&](const glm::vec3 point) { |
132 points(element, [&](const glm::vec3 point) { |
133 const unsigned int hash = hashVertex(point); |
133 const hash_t hash = hashVertex(point); |
134 VertexInfo& info = this->map[hash]; |
134 VertexInfo& info = this->map[hash]; |
135 info.point = point; |
135 info.point = point; |
136 info.objects.insert(this->model->idAt(i)); |
136 info.objects.insert(this->model->idAt(i)); |
137 if (matrix.has_value() and not info.transformSet) |
137 if (matrix.has_value() and not info.transformSet) |
138 { |
138 { |