14#ifdef LAGRANGE_ENABLE_LEGACY_HEADERS
15 #include <lagrange/legacy/select_facets_by_normal_similarity.h>
18#include <lagrange/AttributeFwd.h>
19#include <lagrange/SurfaceMesh.h>
103template <
typename Scalar,
typename Index>
106 const Index seed_facet_id,
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
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:30
Main namespace for Lagrange.
Option struct for selecting facets based on normal similarity.
Definition select_facets_by_normal_similarity.h:40
SearchType
select_facets_by_normal_similarity uses either BFS or DFS in its flooding search
Definition select_facets_by_normal_similarity.h:66
@ BFS
Breadth-First Search.
Definition select_facets_by_normal_similarity.h:67
@ DFS
Depth-First Search.
Definition select_facets_by_normal_similarity.h:68
std::string_view facet_normal_attribute_name
The attribute name for the facet normal.
Definition select_facets_by_normal_similarity.h:56
SearchType search_type
The search type (BFS or DFS)
Definition select_facets_by_normal_similarity.h:72
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:53
double flood_error_limit
Increasing this would select a larger region.
Definition select_facets_by_normal_similarity.h:42
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:60
int num_smooth_iterations
Smoothing boundary of selected region (reduce ears)
Definition select_facets_by_normal_similarity.h:75
std::string_view output_attribute_name
The attribute name for the selection output.
Definition select_facets_by_normal_similarity.h:63