12 .description(
"Geometry to split into separate components");
15 b.add_output<
decl::Geometry>(
"Grease Pencil"_ustr).propagate_all_geometry();
16 b.add_output<
decl::Geometry>(
"Point Cloud"_ustr).propagate_all_geometry();
19 .propagate_all_geometry();
20 b.add_output<
decl::Geometry>(
"Instances"_ustr).propagate_all_geometry();
36 meshes.set_name(name);
44 meshes.copy_bundle_from(geometry_set);
45 curves.copy_bundle_from(geometry_set);
73 params.
set_output(
"Point Cloud"_ustr, pointclouds);
75 params.
set_output(
"Instances"_ustr, instances);
83 ntype.
ui_name =
"Separate Components";
85 "Split a geometry into a separate output for each type of data in the geometry";
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_SEPARATE_COMPONENTS
#define BLT_I18NCONTEXT_ID_ID
#define NOD_REGISTER_NODE(REGISTER_FUNC)
constexpr bool is_empty() const
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static void node_geo_exec(GeoNodeExecParams params)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
StringRefNull name() const
void set_name(std::string name)
bool has(const GeometryComponent::Type component_type) const
const GeometryComponent * get_component(GeometryComponent::Type component_type) const
void copy_bundle_from(const GeometrySet &other)
void add(const GeometryComponent &component)
static constexpr int _160
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare