From ff43abae8c0e45849f643a2e9dd1c4a74d14dc71 Mon Sep 17 00:00:00 2001 From: "Dmitry Yu. Naumov" <github@naumov.de> Date: Thu, 21 Jun 2018 16:25:57 +0200 Subject: [PATCH] [A] Add search length to construct mesh from geom. --- .../MeshGeoTools/ConstructMeshesFromGeometry.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Applications/Utils/MeshGeoTools/ConstructMeshesFromGeometry.cpp b/Applications/Utils/MeshGeoTools/ConstructMeshesFromGeometry.cpp index b7e43798999..85f8768df15 100644 --- a/Applications/Utils/MeshGeoTools/ConstructMeshesFromGeometry.cpp +++ b/Applications/Utils/MeshGeoTools/ConstructMeshesFromGeometry.cpp @@ -37,6 +37,16 @@ int main(int argc, char* argv[]) ' ', "0.1"); + TCLAP::ValueArg<double> search_length_arg( + "s", + "searchlength", + "search length determining radius for the node search algorithm. " + "Non-negative floating point number (default 1e-16) ", + false, + 1e-16, + "float"); + cmd.add(search_length_arg); + TCLAP::ValueArg<std::string> geometry_arg("g", "geometry", "the file name the geometry", @@ -60,8 +70,12 @@ int main(int argc, char* argv[]) auto const geo_objects = readGeometry(geometry_arg.getValue()); + double const search_length = search_length_arg.getValue(); + auto const extracted_meshes = constructAdditionalMeshesFromGeoObjects( - *geo_objects, *mesh, std::make_unique<MeshGeoToolsLib::SearchLength>()); + *geo_objects, + *mesh, + std::make_unique<MeshGeoToolsLib::SearchLength>(search_length)); for (auto const& m_ptr : extracted_meshes) { -- GitLab