not in the public api
| 57 | |
| 58 | // not in the public api |
| 59 | double getNetAreaHelper(const PlanarSurface& planarSurface) { |
| 60 | boost::optional<Space> space = planarSurface.space(); |
| 61 | |
| 62 | double multiplier = 1.0; |
| 63 | if (space) { |
| 64 | multiplier = space->multiplier(); |
| 65 | } |
| 66 | |
| 67 | if (planarSurface.optionalCast<SubSurface>()) { |
| 68 | multiplier = multiplier * planarSurface.cast<SubSurface>().multiplier(); |
| 69 | } |
| 70 | |
| 71 | if (planarSurface.optionalCast<InteriorPartitionSurface>()) { |
| 72 | boost::optional<InteriorPartitionSurfaceGroup> interiorPartitionSurfaceGroup = |
| 73 | planarSurface.cast<InteriorPartitionSurface>().interiorPartitionSurfaceGroup(); |
| 74 | if (interiorPartitionSurfaceGroup) { |
| 75 | multiplier = multiplier * interiorPartitionSurfaceGroup->multiplier(); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | return multiplier * planarSurface.netArea(); |
| 80 | } |
| 81 | |
| 82 | double ConstructionBase_Impl::getNetArea() const { |
| 83 | Handle handle = this->handle(); |
no test coverage detected