13 b.use_custom_socket_order();
14 b.allow_any_socket_order();
18 .align_with_previous()
19 .
description(
"The input geometry with optionally the selected component removed")
20 .propagate_all_geometry();
21 b.add_output<
decl::Geometry>(
"Component"_ustr).propagate_all_geometry();
24 "Whether the geometry had a component of the type. This does not check if the component "
29 b.add_input<
decl::Bool>(
"Remove"_ustr).default_value(
true);
36 const bool remove = params.
extract_input<
bool>(
"Remove"_ustr);
49 component_geo.add(*component);
52 component_geo.copy_bundle_from(
geometry);
53 component_geo.set_name(
geometry.name());
65 params.
set_output(
"Component"_ustr, component_geo);
74 ntype.
ui_name =
"Get Geometry Component";
#define NODE_CLASS_GEOMETRY
#define NOD_REGISTER_NODE(REGISTER_FUNC)
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
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)
static constexpr int _180
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare