diff --git a/src/ifcgeom/taxonomy.cpp b/src/ifcgeom/taxonomy.cpp index 9339a472e3..feecc9c39c 100644 --- a/src/ifcgeom/taxonomy.cpp +++ b/src/ifcgeom/taxonomy.cpp @@ -473,6 +473,8 @@ ifcopenshell::geometry::taxonomy::item::ptr ifcopenshell::geometry::taxonomy::pi num_steps = (unsigned)std::ceil(param); } + num_steps = std::max(1u, num_steps); // never have fewer than 1 step + return evaluate(0.0, curve_length, num_steps); }