| 86 | } |
| 87 | |
| 88 | uint32_t Mesh::push_normal(const Coord3f& normal) { |
| 89 | long hash = hashpoint(normal.x, normal.y, normal.z); |
| 90 | auto it = this->_mapNormals.find(hash); |
| 91 | if (it == this->_mapNormals.end()) { |
| 92 | this->_normals.push_back(normal); |
| 93 | uint32_t index = (uint32_t)(this->_normals.size() - 1); |
| 94 | this->_mapNormals[hash] = index; |
| 95 | return index; |
| 96 | } |
| 97 | return it->second; |
| 98 | } |
| 99 | |
| 100 | int Mesh::extractFaceMesh(const TopoDS_Face& face, bool qualityNormals) |
| 101 | { |
no test coverage detected