@@ -23,6 +23,7 @@ const std::string ISO_SPACING = "iso_spacing";
2323const std::string SPACING = " spacing" ;
2424const std::string CONVERT_MESH = " convert_to_mesh" ;
2525const std::string FILL_MESH_HOLES = " fill_mesh_holes" ;
26+ const std::string MESH_LARGEST_COMPONENT = " mesh_largest_component" ;
2627const std::string FILL_HOLES = " fill_holes" ;
2728const std::string ISOLATE = " isolate" ;
2829const std::string PAD = " pad" ;
@@ -77,6 +78,7 @@ const std::vector<double> spacing{0, 0, 0};
7778const bool convert_mesh = false ;
7879const bool fill_holes = true ;
7980const bool fill_holes_mesh = false ;
81+ const bool mesh_largest_component = true ;
8082const bool isolate = true ;
8183const bool pad = true ;
8284const int pad_value = 10 ;
@@ -156,6 +158,7 @@ GroomParameters::GroomParameters(ProjectHandle project, std::string domain_name)
156158 Keys::SPACING,
157159 Keys::CONVERT_MESH,
158160 Keys::FILL_MESH_HOLES,
161+ Keys::MESH_LARGEST_COMPONENT,
159162 Keys::FILL_HOLES,
160163 Keys::ISOLATE,
161164 Keys::PAD,
@@ -233,6 +236,14 @@ bool GroomParameters::get_fill_mesh_holes_tool() {
233236// ---------------------------------------------------------------------------
234237void GroomParameters::set_fill_mesh_holes_tool (bool value) { params_.set (Keys::FILL_MESH_HOLES, value); }
235238
239+ // ---------------------------------------------------------------------------
240+ bool GroomParameters::get_mesh_largest_component () {
241+ return params_.get (Keys::MESH_LARGEST_COMPONENT, Defaults::mesh_largest_component);
242+ }
243+
244+ // ---------------------------------------------------------------------------
245+ void GroomParameters::set_mesh_largest_component (bool value) { params_.set (Keys::MESH_LARGEST_COMPONENT, value); }
246+
236247// ---------------------------------------------------------------------------
237248bool GroomParameters::get_auto_pad_tool () { return params_.get (Keys::PAD, Defaults::pad); }
238249
0 commit comments