17 .structure_type(StructureType::Field)
19 "The index of the each vertex's island. Indices are based on the "
20 "lowest vertex index contained in each island");
22 .structure_type(StructureType::Field)
38 for (const int2 &edge : edges.slice(range)) {
39 islands.join(edge[0], edge[1]);
46 return mesh.attributes().adapt_domain<
int>(
52 static constexpr int8_t id = 0;
58 return AttrDomain::Point;
80 for (const int2 &edge : edges.slice(range)) {
81 islands.join(edge[0], edge[1]);
85 const int islands_num =
islands.count_sets();
91 static constexpr int8_t id = 0;
97 return AttrDomain::Point;
121 ntype.
ui_description =
"Retrieve information about separate connected regions in a mesh";
#define GEO_NODE_INPUT_MESH_ISLAND
#define NOD_REGISTER_NODE(REGISTER_FUNC)
constexpr IndexRange index_range() const
static VArray from_single(T value, const int64_t size)
static VArray from_container(ContainerT container)
static Field from_input(Args &&...args)
bool output_is_required(const UString identifier) const
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
void parallel_for(const IndexRange range, const int64_t grain_size, const Function &function, const TaskSizeHints &size_hints=detail::TaskSizeHints_Static(1))
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare