| 66 | } |
| 67 | |
| 68 | long hashpoint(double x, double y, double z) |
| 69 | { |
| 70 | long nx = static_cast<long>(x * 1000); |
| 71 | long ny = static_cast<long>(y * 1000); |
| 72 | long nz = static_cast<long>(z * 1000); |
| 73 | return (nx * 9138553 + ny * 485993 + nz * 1194163) % 15485653; |
| 74 | } |
| 75 | |
| 76 | uint32_t Mesh::push_point(const Coord3f& point) { |
| 77 | long hash = hashpoint(point.x, point.y, point.z); |
no outgoing calls
no test coverage detected