| 5 | using namespace ifcopenshell::geometry; |
| 6 | |
| 7 | ifcopenshell::geometry::Converter::Converter(std::unique_ptr<ifcopenshell::geometry::kernels::AbstractKernel>&& geometry_library, IfcParse::IfcFile* file, ifcopenshell::geometry::Settings& s) |
| 8 | : kernel_(std::move(geometry_library)) |
| 9 | { |
| 10 | mapping_ = impl::mapping_implementations().construct(file, s); |
| 11 | // Mapping reads unit information and applies to settings |
| 12 | settings_ = mapping_->settings(); |
| 13 | } |
| 14 | |
| 15 | ifcopenshell::geometry::Converter::~Converter() { |
| 16 | delete mapping_; |