MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / cacheGeometryDiagnostics

Method cacheGeometryDiagnostics

src/model/Space.cpp:3244–3251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers 1

modelToThreeJSMethod · 0.80

Calls 2

polyhedronMethod · 0.95
isEnclosedVolumeMethod · 0.45

Tested by

no test coverage detected