21 b.use_custom_socket_order();
22 b.allow_any_socket_order();
23 b.add_default_layout();
28 b.add_output<
decl::Geometry>(
"Geometry").propagate_all().align_with_previous();
32 auto &rotation =
b.add_input<
decl::Rotation>(
"Rotation").make_available(enable_components);
38 const bNode *node =
b.node_or_null();
39 if (node !=
nullptr) {
42 translation.available(!use_matrix);
43 rotation.available(!use_matrix);
44 scale.available(!use_matrix);
74 TIP_(
"Invalid transformation for volume grids"));
78 TIP_(
"Volume scale is lower than permitted by OpenVDB"));
111 params.set_output(
"Geometry", std::move(geometry_set));
121 "Provide separate location, rotation and scale"},
123 {0,
nullptr, 0,
nullptr,
nullptr},
129 "How the transformation is specified",
138 ntype.
ui_name =
"Transform Geometry";
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_TRANSFORM_GEOMETRY
MINLINE int compare_ff(float a, float b, float max_diff)
@ GEO_NODE_TRANSFORM_MODE_MATRIX
@ GEO_NODE_TRANSFORM_MODE_COMPONENTS
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_inline_enum_accessors(member)
void uiLayoutSetPropSep(uiLayout *layout, bool is_sep)
void uiLayoutSetPropDecorate(uiLayout *layout, bool is_sep)
SIMD_FORCE_INLINE btVector3 transform(const btVector3 &point) const
void make_available(bNode &node) const
void node_register_type(bNodeType &ntype)
void translate_geometry(bke::GeometrySet &geometry, const float3 translation)
std::optional< TransformGeometryErrors > transform_geometry(bke::GeometrySet &geometry, const float4x4 &transform)
QuaternionBase< float > Quaternion
AngleRadianBase< T > angle_of(const QuaternionBase< T > &q)
MatT from_loc_rot_scale(const typename MatT::loc_type &location, const RotationT &rotation, const VecBase< typename MatT::base_type, ScaleDim > &scale)
PropertyRNA * RNA_def_node_enum(StructRNA *srna, const char *identifier, const char *ui_name, const char *ui_description, const EnumPropertyItem *static_items, const EnumRNAAccessors accessors, std::optional< int > default_value, const EnumPropertyItemFunc item_func, const bool allow_animation)
MatBase< float, 4, 4 > float4x4
VecBase< float, 3 > float3
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)