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

Method unmatchSurfaces

src/model/Space.cpp:2629–2645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2627 }
2628
2629 void Space_Impl::unmatchSurfaces() {
2630 for (Surface& surface : this->surfaces()) {
2631 boost::optional<Surface> adjacentSurface = surface.adjacentSurface();
2632 if (adjacentSurface) {
2633 surface.resetAdjacentSurface();
2634 adjacentSurface->resetAdjacentSurface();
2635 }
2636
2637 for (SubSurface& subSurface : surface.subSurfaces()) {
2638 boost::optional<SubSurface> adjacentSubSurface = subSurface.adjacentSubSurface();
2639 if (adjacentSubSurface) {
2640 subSurface.resetAdjacentSubSurface();
2641 adjacentSubSurface->resetAdjacentSubSurface();
2642 }
2643 }
2644 }
2645 }
2646
2647 void Space_Impl::matchSurfaces(Space& other) {
2648 double tol = 0.01;

Callers 2

unmatchSurfacesFunction · 0.80
TEST_FFunction · 0.80

Calls 6

surfacesMethod · 0.95
adjacentSurfaceMethod · 0.80
resetAdjacentSurfaceMethod · 0.80
adjacentSubSurfaceMethod · 0.80
subSurfacesMethod · 0.45

Tested by 1

TEST_FFunction · 0.64