| 174 | } |
| 175 | |
| 176 | void setModelLengthUnit( std::optional<LengthUnit> unit ) |
| 177 | { |
| 178 | auto getDependentUnit = getLengthDependentUnit(); |
| 179 | |
| 180 | forAllLengthUnits( [&]<typename E>( ) |
| 181 | { |
| 182 | auto params = getDefaultUnitParams<E>(); |
| 183 | params.sourceUnit = unit ? std::optional( getDependentUnit.template operator() < E > ( *unit ) ) : std::nullopt; |
| 184 | setDefaultUnitParams( params ); |
| 185 | } ); |
| 186 | } |
| 187 | |
| 188 | std::optional<LengthUnit> getActualModelLengthUnit() |
| 189 | { |
no test coverage detected