20 b.add_input<
decl::Bool>(
"Local Space").default_value(
true).field_on_all();
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 GEO_NODE_TRANSLATE_INSTANCES
#define NOD_REGISTER_NODE(REGISTER_FUNC)
int instances_num() const
MutableSpan< float4x4 > transforms_for_write()
void set_selection(Field< bool > selection)
int add(GField field, GVArray *varray_ptr)
IndexMask get_evaluated_selection_as_mask() const
const GVArray & get_evaluated(const int field_index) const
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)
VecBase< float, 3 > float3
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
GPU_SHADER_INTERFACE_INFO(overlay_edit_curve_handle_iface, "vert").flat(Type pos vertex_in(1, Type::UINT, "data") .vertex_out(overlay_edit_curve_handle_iface) .geometry_layout(PrimitiveIn Frequency::GEOMETRY storage_buf(1, Qualifier::READ, "uint", "data[]", Frequency::GEOMETRY) .push_constant(Type Frequency::GEOMETRY selection[]
Instances * get_instances_for_write()
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare