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

Function getBoundaryMaterialName

src/model/ThreeJSForwardTranslator.cpp:165–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 }
164
165 std::string getBoundaryMaterialName(const ThreeUserData& userData) {
166 std::string result;
167 if (userData.outsideBoundaryCondition() == "Outdoors") {
168 if ((userData.sunExposure() == "SunExposed") && (userData.windExposure() == "WindExposed")) {
169 result = "Boundary_Outdoors_SunWind";
170 } else if (userData.sunExposure() == "SunExposed") {
171 result = "Boundary_Outdoors_Sun";
172 } else if (userData.windExposure() == "WindExposed") {
173 result = "Boundary_Outdoors_Wind";
174 } else {
175 result = "Boundary_Outdoors";
176 }
177 } else {
178 result = "Boundary_" + userData.outsideBoundaryCondition();
179 }
180 return result;
181 }
182
183 void updateUserData(ThreeUserData& userData, const PlanarSurface& planarSurface, bool includeGeometryDiagnostics) {
184 std::string name = planarSurface.nameString();

Callers 1

updateUserDataFunction · 0.85

Calls 3

sunExposureMethod · 0.45
windExposureMethod · 0.45

Tested by

no test coverage detected