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

Method setVertices

src/model/Surface.cpp:267–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 }
266
267 bool Surface_Impl::setVertices(const std::vector<Point3d>& vertices) {
268 bool result = PlanarSurface_Impl::setVertices(vertices);
269
270 if (isEmpty(OS_SurfaceFields::SurfaceType)) {
271 if (result) {
272 this->assignDefaultSurfaceType(false);
273 this->assignDefaultBoundaryCondition(false);
274 this->assignDefaultSunExposure(false);
275 this->assignDefaultWindExposure(false);
276 this->emitChangeSignals(); // emit signals here
277 } else {
278 LOG(Error, "Cannot compute default Surface properties.");
279 }
280 }
281
282 return result;
283 }
284
285 bool Surface_Impl::setConstruction(const ConstructionBase& construction) {
286 return setPointer(OS_SurfaceFields::ConstructionName, construction.handle());

Callers 11

computeIntersectionMethod · 0.95
changeTransformationMethod · 0.45
changeTransformationMethod · 0.45
changeTransformationMethod · 0.45
ShiftVerticesFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
validateSpaceSurfacesMethod · 0.45

Calls 7

setVerticesFunction · 0.85
isEmptyFunction · 0.85
emitChangeSignalsMethod · 0.45

Tested by 3

ShiftVerticesFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36