20 b.add_input<
decl::Bool>(
"Local Space").default_value(
true).field_on_all();
33 const IndexMask selection = evaluator.get_evaluated_selection_as_mask();
35 const VArray<bool> local_spaces = evaluator.get_evaluated<
bool>(1);
40 if (local_spaces[i]) {
44 transforms[i].location() += translations[i];
55 params.set_output(
"Instances", std::move(geometry_set));
#define NODE_CLASS_GEOMETRY
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void set_selection(Field< bool > selection)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
MatT from_location(const typename MatT::loc_type &location)
static void translate_instances(GeoNodeExecParams ¶ms, bke::Instances &instances)
static void register_node()
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
Instances * get_instances_for_write()
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare