From c4dc3934fa956883072edd7700bf84937d1898f8 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 15 Jun 2022 14:46:37 +0200 Subject: [PATCH] Add missing file --- .../IfcGeomIteratorSettings.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/ifcgeom_schema_agnostic/IfcGeomIteratorSettings.cpp diff --git a/src/ifcgeom_schema_agnostic/IfcGeomIteratorSettings.cpp b/src/ifcgeom_schema_agnostic/IfcGeomIteratorSettings.cpp new file mode 100644 index 0000000000..9a2df3a578 --- /dev/null +++ b/src/ifcgeom_schema_agnostic/IfcGeomIteratorSettings.cpp @@ -0,0 +1,12 @@ +#include "IfcGeomIteratorSettings.h" + +#include "../ifcparse/IfcLogger.h" + +void IfcGeom::IteratorSettings::set_deflection_tolerance(double value) +{ + deflection_tolerance_ = value; + if (deflection_tolerance_ <= 1e-6) { + Logger::Message(Logger::LOG_WARNING, "Deflection tolerance cannot be set to <= 1e-6; using the default value 1e-3"); + deflection_tolerance_ = 1e-3; + } +}