15 .
description(
"Each input geometry is turned into a separate instance");
16 b.add_output<
decl::Geometry>(
"Instances"_ustr).propagate_all_geometry();
23 auto instances = std::make_unique<bke::Instances>(geometries.
values.size());
27 for (
const int i : geometries.
values.index_range()) {
30 handles[i] = instances->add_reference(std::move(
geometry));
43 ntype.
ui_name =
"Geometry to Instance";
45 "Convert each input geometry into an instance, which can be much faster than the Join "
46 "Geometry node when the inputs are large";
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_GEOMETRY_TO_INSTANCE
#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_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)
static MatBase identity()
static constexpr int _160
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare
static GeometrySet from_instances(std::unique_ptr< Instances > instances)