| 1964 | } |
| 1965 | |
| 1966 | AirflowNetworkSurface Surface_Impl::getAirflowNetworkSurface(const AirflowNetworkComponent& surfaceAirflowLeakage) { |
| 1967 | boost::optional<AirflowNetworkSurface> result = airflowNetworkSurface(); |
| 1968 | if (result) { |
| 1969 | boost::optional<AirflowNetworkComponent> leakageComponent = result->leakageComponent(); |
| 1970 | if (leakageComponent) { |
| 1971 | if (leakageComponent->handle() == surfaceAirflowLeakage.handle()) { |
| 1972 | return result.get(); |
| 1973 | } else { |
| 1974 | result->remove(); |
| 1975 | } |
| 1976 | } else { |
| 1977 | result->remove(); |
| 1978 | } |
| 1979 | } |
| 1980 | return AirflowNetworkSurface(this->model(), surfaceAirflowLeakage.handle(), this->handle()); |
| 1981 | } |
| 1982 | |
| 1983 | bool Surface_Impl::setAdjacentFoundation(const FoundationKiva& kiva) { |
| 1984 | bool result = this->setPointer(OS_SurfaceFields::OutsideBoundaryConditionObject, kiva.handle()); |