diff --git a/Examples/Io/Obj/src/ObjSimHitWriter.cpp b/Examples/Io/Obj/src/ObjSimHitWriter.cpp index 377d0795e2c..564ff9c5409 100644 --- a/Examples/Io/Obj/src/ObjSimHitWriter.cpp +++ b/Examples/Io/Obj/src/ObjSimHitWriter.cpp @@ -38,7 +38,7 @@ std::vector interpolatedPoints( const std::vector& inputs, std::size_t nPoints) { std::vector output; - if (nPoints < 1) { + if (nPoints < 2) { // No interpolation done return simply the output vector for (const auto& input : inputs) { output.push_back(input.template head<3>());