27 "Geometry to get the domain sizes of. Only the root geometry is considered, not nested "
29 auto &total_points =
b.add_output<
decl::Int>(
"Point Count"_ustr)
34 auto &total_edges =
b.add_output<
decl::Int>(
"Edge Count"_ustr)
39 auto &total_faces =
b.add_output<
decl::Int>(
"Face Count"_ustr)
44 auto &total_corners =
b.add_output<
decl::Int>(
"Face Corner Count"_ustr)
49 auto &total_curves =
b.add_output<
decl::Int>(
"Spline Count"_ustr)
54 auto &total_instances =
b.add_output<
decl::Int>(
"Instance Count"_ustr)
59 auto &total_layers =
b.add_output<
decl::Int>(
"Layer Count"_ustr)
66 if (
node !=
nullptr) {
69 total_points.available(
true);
70 total_edges.available(
true);
71 total_faces.available(
true);
72 total_corners.available(
true);
75 total_points.available(
true);
76 total_curves.available(
true);
79 total_points.available(
true);
82 total_instances.available(
true);
85 total_layers.available(
true);
199 ntype.
ui_description =
"Retrieve the number of elements in a geometry for each attribute domain";
Low-level operations for curves.
Low-level operations for grease pencil.
#define NODE_CLASS_ATTRIBUTE
#define GEO_NODE_ATTRIBUTE_DOMAIN_SIZE
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_inline_enum_accessors(member)
int domain_size(const AttrDomain domain) const
T extract_input(const UString identifier)
const bNode & node() const
void set_default_remaining_outputs()
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
static void node_layout(ui::Layout &layout, bContext *, PointerRNA *ptr)
static void node_rna(StructRNA *srna)
static void node_init(bNodeTree *, bNode *node)
static void node_geo_exec(GeoNodeExecParams params)
PropertyRNA * RNA_def_node_enum(StructRNA *srna, const char *identifier, const char *ui_name, const char *ui_description, const EnumPropertyItem *static_items, const EnumRNAAccessors accessors, std::optional< int > default_value, const EnumPropertyItemFunc item_func, const bool allow_animation)
const EnumPropertyItem * enum_items_filter(const EnumPropertyItem *original_item_array, FunctionRef< bool(const EnumPropertyItem &item)> fn)
const EnumPropertyItem rna_enum_geometry_component_type_items[]
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
const GreasePencil * get_grease_pencil() const
const Curves * get_curves() const
const Instances * get_instances() const
const PointCloud * get_pointcloud() const
const Mesh * get_mesh() const
void(*) draw_buttons(ui::Layout &, bContext *C, PointerRNA *ptr)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
void(*) initfunc(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)