20 .structure_type(StructureType::Field)
21 .description(
"Edges used to split faces into separate groups");
23 .structure_type(StructureType::Field)
24 .propagate_references()
25 .
description(
"Index of the face group inside each boundary edge region");
32 set.
join(indices[i], indices[i + 1]);
43 non_boundary_edge_field_(std::move(selection))
53 evaluator.
add(non_boundary_edge_field_);
62 faces,
mesh.corner_edges(),
mesh.edges_num, edge_to_face_offsets, edge_to_face_indices);
72 return mesh.attributes().adapt_domain(
78 static constexpr int8_t id = 0;
80 hash.add(deep_hash_cache.
ensure(non_boundary_edge_field_));
85 return AttrDomain::Face;
103 ntype.
ui_name =
"Edges to Face Groups";
104 ntype.
ui_description =
"Group faces into regions surrounded by the selected boundary edges";
#define GEO_NODE_EDGES_TO_FACE_GROUPS
#define NOD_REGISTER_NODE(REGISTER_FUNC)
constexpr IndexRange drop_back(int64_t n) const
constexpr IndexRange index_range() const
static VArray from_container(ContainerT container)
int add(GField field, GVArray *varray_ptr)
IndexMask get_evaluated_as_mask(int field_index)
void foreach_index(Fn &&fn, Mode mode=exec_mode::serial) const
static Field from_input(Args &&...args)
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
GroupedSpan< int > build_edge_to_face_map(OffsetIndices< int > faces, Span< int > corner_edges, int edges_num, Array< int > &r_offsets, Array< int > &r_indices)
void node_register_type(bNodeType &ntype)
constexpr ParallelGrainSize grain_size(int grain_size)
Field< bool > invert_boolean_field(const Field< bool > &field)
static void join_indices(AtomicDisjointSet &set, const Span< int > indices)
static void node_register()
static void geo_node_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
static constexpr int _160
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare
UniqueHash ensure(const GFieldRef &field)