| 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(); |
nothing calls this directly
no test coverage detected