14 b.add_output<
decl::Vector>(
"Normal"_ustr).structure_type(StructureType::Field);
16 .structure_type(StructureType::Field)
18 "For meshes, outputs normals without custom normal attributes taken into account");
23 layout.
prop(ptr,
"legacy_corner_normals",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
28 const bool legacy_corner_normals = bool(params.
node().
custom1);
47 "Retrieve a unit length vector indicating the direction pointing away from the geometry at "
#define GEO_NODE_INPUT_NORMAL
#define NOD_REGISTER_NODE(REGISTER_FUNC)
static Field from_input(Args &&...args)
bool output_is_required(const UString identifier) const
const bNode & node() const
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
void(*) draw_buttons_ex(ui::Layout &, bContext *C, PointerRNA *ptr)
const char * enum_name_legacy
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)