| 163 | } |
| 164 | |
| 165 | inline bool patchHasVertex(const IPatch& patch, const Vector3& position) |
| 166 | { |
| 167 | for (std::size_t col = 0; col < patch.getWidth(); ++col) |
| 168 | { |
| 169 | for (std::size_t row = 0; row < patch.getHeight(); ++row) |
| 170 | { |
| 171 | if (math::isNear(patch.ctrlAt(row, col).vertex, position, 0.01)) |
| 172 | { |
| 173 | return true; |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | return false; |
| 179 | } |
| 180 | |
| 181 | inline bool patchHasVertices(const IPatch& patch, const std::vector<Vector3>& positions) |
| 182 | { |
no test coverage detected