15 .
description(
"The corner to retrieve data from. Defaults to the corner from the context")
16 .structure_type(StructureType::Field);
17 b.add_output<
decl::Int>(
"Next Edge Index"_ustr)
18 .structure_type(StructureType::Field)
19 .propagate_references()
21 "The edge after the corner in the face, in the direction of increasing indices");
22 b.add_output<
decl::Int>(
"Previous Edge Index"_ustr)
23 .structure_type(StructureType::Field)
24 .propagate_references()
26 "The edge before the corner in the face, in the direction of decreasing indices");
37 if (domain != AttrDomain::Corner) {
45 static constexpr int8_t id = 0;
51 return AttrDomain::Corner;
65 if (domain != AttrDomain::Corner) {
72 corner_edges.
size(), [faces, corner_edges, corner_to_face](
const int corner) {
73 return corner_edges[bke::mesh::face_corner_prev(faces[corner_to_face[corner]], corner)];
79 static constexpr int8_t id = 0;
85 return AttrDomain::Corner;
94 "Next Edge Index"_ustr,
103 AttrDomain::Corner));
112 ntype.
ui_name =
"Edges of Corner";
113 ntype.
ui_description =
"Retrieve the edges on both sides of a face corner";
#define GEO_NODE_MESH_TOPOLOGY_EDGES_OF_CORNER
#define NOD_REGISTER_NODE(REGISTER_FUNC)
constexpr int64_t size() const
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