15 .
description(
"Each input geometry is turned into a separate instance");
23 std::unique_ptr<bke::Instances> instances = std::make_unique<bke::Instances>();
27 const int handle = instances->add_reference(std::move(
geometry));
32 params.set_output(
"Instances", std::move(new_geometry));
40 ntype.
ui_name =
"Geometry to Instance";
42 "Convert each input geometry into an instance, which can be much faster than the Join "
43 "Geometry node when the inputs are large";
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_GEOMETRY_TO_INSTANCE
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void node_type_size(bNodeType &ntype, int width, int minwidth, int maxwidth)
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(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
static MatBase identity()
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare
static GeometrySet from_instances(Instances *instances, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)