Fixes after settings rework

This commit is contained in:
Thomas Krijnen
2024-04-18 21:36:45 +02:00
parent 29fd32be75
commit ffe1442974
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ namespace ifcopenshell {
struct OutputDimensionality : public SettingBase<OutputDimensionality, OutputDimensionalityTypes> {
static constexpr const char* const name = "dimensionality";
static constexpr const char* const description = "Specifies whether to include curves and/or surfaces and solids in the output result. Defaults to only surfaces and solids.";
static constexpr OutputDimensionalityTypes defaultvalue = CURVES_SURFACES_AND_SOLIDS;
static constexpr OutputDimensionalityTypes defaultvalue = SURFACES_AND_SOLIDS;
};
enum IteratorOutputOptions {
+1 -1
View File
@@ -22,7 +22,7 @@
using namespace ifcopenshell::geometry;
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRepresentation* inst) {
const bool items_to_include = !this->settings_.get<settings::OutputDimensionality>().get();
auto items_to_include = this->settings_.get<settings::OutputDimensionality>().get();
auto items = map_to_collection(this, inst->Items());
if (!items) {