15 .
description(
"The corner to retrieve data from. Defaults to the corner from the context");
17 .field_source_reference_all()
18 .
description(
"The index of the face the corner is a part of");
20 .field_source_reference_all()
21 .
description(
"The index of the corner starting from the first corner in the face");
35 if (domain != AttrDomain::Corner) {
43 return 2348712958475728;
63 if (domain != AttrDomain::Corner) {
67 const Span<int> corner_to_face = mesh.corner_to_face_map();
69 const int face_i = corner_to_face[corner];
70 return corner - faces[face_i].start();
86 return AttrDomain::Corner;
93 if (
params.output_is_required(
"Face Index")) {
94 params.set_output(
"Face Index",
95 Field<int>(std::make_shared<bke::EvaluateAtIndexInput>(
97 Field<int>(std::make_shared<CornerFaceIndexInput>()),
98 AttrDomain::Corner)));
100 if (
params.output_is_required(
"Index in Face")) {
101 params.set_output(
"Index in Face",
102 Field<int>(std::make_shared<bke::EvaluateAtIndexInput>(
104 Field<int>(std::make_shared<CornerIndexInFaceInput>()),
105 AttrDomain::Corner)));
113 ntype.
ui_name =
"Face of Corner";
114 ntype.
ui_description =
"Retrieve the face each face corner is part of";
#define GEO_NODE_MESH_TOPOLOGY_FACE_OF_CORNER
@ NODE_DEFAULT_INPUT_INDEX_FIELD
#define NOD_REGISTER_NODE(REGISTER_FUNC)
unsigned long long int uint64_t
static VArray ForSpan(Span< T > values)
static VArray ForFunc(const int64_t size, GetFunc get_func)
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static void node_geo_exec(GeoNodeExecParams params)
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
NodeDeclareFunction declare