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

Method equalVertices

src/model/PlanarSurface.cpp:417–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415 }
416
417 bool PlanarSurface_Impl::equalVertices(const PlanarSurface& other) const {
418 std::vector<Point3d> vertices1 = this->vertices();
419 std::vector<Point3d> vertices2 = other.vertices();
420
421 boost::optional<PlanarSurfaceGroup> group;
422
423 Transformation t1;
424 group = this->planarSurfaceGroup();
425 if (group) {
426 t1 = group->buildingTransformation();
427 }
428
429 Transformation t2;
430 group = other.planarSurfaceGroup();
431 if (group) {
432 t2 = group->buildingTransformation();
433 }
434
435 return circularEqual(t1 * vertices1, t2 * vertices2);
436 }
437
438 bool PlanarSurface_Impl::reverseEqualVertices(const PlanarSurface& other) const {
439 std::vector<Point3d> vertices1 = this->vertices();

Callers

nothing calls this directly

Calls 4

verticesMethod · 0.95
circularEqualFunction · 0.85
planarSurfaceGroupMethod · 0.45

Tested by

no test coverage detected