15 .
description(
"The corner to retrieve data from. Defaults to the corner from the context");
17 .field_source_reference_all()
19 "The edge after the corner in the face, in the direction of increasing indices");
21 .field_source_reference_all()
23 "The edge before the corner in the face, in the direction of decreasing indices");
37 if (domain != AttrDomain::Corner) {
55 return AttrDomain::Corner;
70 if (domain != AttrDomain::Corner) {
74 const Span<int> corner_edges = mesh.corner_edges();
75 const Span<int> corner_to_face = mesh.corner_to_face_map();
77 corner_edges.
size(), [
faces, corner_edges, corner_to_face](
const int corner) {
78 return corner_edges[bke::mesh::face_corner_prev(faces[corner_to_face[corner]], corner)];
84 return 987298345762465;
94 return AttrDomain::Corner;
101 if (
params.output_is_required(
"Next Edge Index")) {
102 params.set_output(
"Next Edge Index",
103 Field<int>(std::make_shared<bke::EvaluateAtIndexInput>(
105 Field<int>(std::make_shared<CornerNextEdgeFieldInput>()),
106 AttrDomain::Corner)));
108 if (
params.output_is_required(
"Previous Edge Index")) {
109 params.set_output(
"Previous Edge Index",
110 Field<int>(std::make_shared<bke::EvaluateAtIndexInput>(
112 Field<int>(std::make_shared<CornerPreviousEdgeFieldInput>()),
113 AttrDomain::Corner)));
121 ntype.
ui_name =
"Edges of Corner";
122 ntype.
ui_description =
"Retrieve the edges on both sides of a face corner";
#define GEO_NODE_MESH_TOPOLOGY_EDGES_OF_CORNER
@ NODE_DEFAULT_INPUT_INDEX_FIELD
#define NOD_REGISTER_NODE(REGISTER_FUNC)
unsigned long long int uint64_t
constexpr int64_t size() const
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