| 3242 | } |
| 3243 | |
| 3244 | void Space_Impl::cacheGeometryDiagnostics() { |
| 3245 | m_cachedIsConvex = isConvex(); |
| 3246 | auto volumePoly = this->polyhedron(); |
| 3247 | m_cachedIsEnclosed = volumePoly.isEnclosedVolume(); |
| 3248 | // Actually, its perfectly fine to lookup incorrect orientations even if the polyhedron isn't enclosed... |
| 3249 | // If a Box space is missing one wall for eg, the opposite wall will be deemed incorrectly oriented if using ray casting. |
| 3250 | m_cachedNonConvexSurfaces = findSurfacesWithIncorrectOrientationPolyhedron(volumePoly); |
| 3251 | } |
| 3252 | |
| 3253 | void Space_Impl::resetCachedGeometryDiagnostics() { |
| 3254 | m_cachedNonConvexSurfaces.reset(); |
no test coverage detected