15 b.add_output<
decl::Rotation>(
"Rotation"_ustr).structure_type(StructureType::Field);
30 instances.instances_num(),
31 [transforms](
const int i) { return math::to_quaternion(math::normalize(transforms[i])); });
36 static constexpr int8_t id = 0;
52 ntype.
ui_name =
"Instance Rotation";
53 ntype.
ui_description =
"Retrieve the rotation of each instance in the geometry";
#define GEO_NODE_INPUT_INSTANCE_ROTATION
#define NOD_REGISTER_NODE(REGISTER_FUNC)
static VArray from_func(const int64_t size, GetFunc get_func)
static Field from_input(Args &&...args)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare