14#ifdef LAGRANGE_ENABLE_LEGACY_FUNCTIONS
15 #include <lagrange/legacy/select_facets_by_normal_similarity.h>
97template <
typename Scalar,
typename Index>
100 const Index seed_facet_id,
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
AttributeId select_facets_by_normal_similarity(SurfaceMesh< Scalar, Index > &mesh, const Index seed_facet_id, const SelectFacetsByNormalSimilarityOptions &options={})
Given a seed facet, selects facets around it based on the change in triangle normals.
Definition select_facets_by_normal_similarity.cpp:27
Main namespace for Lagrange.
Option struct for selecting facets based on normal similarity.
Definition select_facets_by_normal_similarity.h:35
SearchType
select_facets_by_normal_similarity uses either BFS or DFS in its flooding search
Definition select_facets_by_normal_similarity.h:61
@ BFS
Breadth-First Search.
Definition select_facets_by_normal_similarity.h:62
@ DFS
Depth-First Search.
Definition select_facets_by_normal_similarity.h:63
std::string_view facet_normal_attribute_name
The attribute name for the facet normal.
Definition select_facets_by_normal_similarity.h:51
SearchType search_type
The search type (BFS or DFS)
Definition select_facets_by_normal_similarity.h:67
double flood_second_to_first_order_limit_ratio
There are two types of error limits when flood-search goes from one facet to its neighboring facet:
Definition select_facets_by_normal_similarity.h:48
double flood_error_limit
Increasing this would select a larger region.
Definition select_facets_by_normal_similarity.h:37
std::optional< std::string_view > is_facet_selectable_attribute_name
Users can specify whether a facet is selectable by an uint8 attribute.
Definition select_facets_by_normal_similarity.h:55
int num_smooth_iterations
Smoothing boundary of selected region (reduce ears)
Definition select_facets_by_normal_similarity.h:70
std::string_view output_attribute_name
The attribute name for the selection output.
Definition select_facets_by_normal_similarity.h:58