diff --git a/MeshGeoToolsLib/MeshNodesAlongPolyline.cpp b/MeshGeoToolsLib/MeshNodesAlongPolyline.cpp index a5fc9c8f8aeb30c027ff0728bbb65855ce065cc1..c505843ebf456a8d9a40666f4a481330e89e2b2e 100644 --- a/MeshGeoToolsLib/MeshNodesAlongPolyline.cpp +++ b/MeshGeoToolsLib/MeshNodesAlongPolyline.cpp @@ -28,6 +28,7 @@ MeshNodesAlongPolyline::MeshNodesAlongPolyline( double epsilon_radius) : _mesh(mesh), _ply(ply) { + assert(epsilon_radius > 0); auto &mesh_nodes = _mesh.getNodes(); const std::size_t n_nodes (mesh_nodes.size()); // loop over all nodes