15 .
description(
"The corner to retrieve data from. Defaults to the corner from the context")
16 .structure_type(StructureType::Field);
18 .structure_type(StructureType::Field)
19 .propagate_references()
20 .
description(
"The index of the face the corner is a part of");
22 .structure_type(StructureType::Field)
23 .propagate_references()
24 .
description(
"The index of the corner starting from the first corner in the face");
35 if (domain != AttrDomain::Corner) {
43 static constexpr int8_t id = 0;
56 if (domain != AttrDomain::Corner) {
62 const int face_i = corner_to_face[corner];
63 return corner - faces[face_i].start();
69 static constexpr int8_t id = 0;
75 return AttrDomain::Corner;
101 ntype.
ui_name =
"Face of Corner";
102 ntype.
ui_description =
"Retrieve the face each face corner is part of";
#define GEO_NODE_MESH_TOPOLOGY_FACE_OF_CORNER
#define NOD_REGISTER_NODE(REGISTER_FUNC)
static VArray from_func(const int64_t size, GetFunc get_func)
static VArray from_span(Span< T > values)
static Field from_input(Args &&...args)
T extract_input(const UString identifier)
bool output_is_required(const UString identifier) const
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static void node_geo_exec(GeoNodeExecParams params)
@ NODE_DEFAULT_INPUT_INDEX_FIELD
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