Differential D16858 Diff 58905 source/blender/nodes/geometry/nodes/node_geo_mesh_topology_edges_of_corner.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_mesh_topology_edges_of_corner.cc
| Show All 10 Lines | |||||
| static void node_declare(NodeDeclarationBuilder &b) | static void node_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Int>(N_("Corner Index")) | b.add_input<decl::Int>(N_("Corner Index")) | ||||
| .implicit_field(implicit_field_inputs::index) | .implicit_field(implicit_field_inputs::index) | ||||
| .description( | .description( | ||||
| N_("The corner to retrieve data from. Defaults to the corner from the context")); | N_("The corner to retrieve data from. Defaults to the corner from the context")); | ||||
| b.add_output<decl::Int>(N_("Next Edge Index")) | b.add_output<decl::Int>(N_("Next Edge Index")) | ||||
| .dependent_field() | .field_source_reference_all() | ||||
| .description( | .description( | ||||
| N_("The edge after the corner in the face, in the direction of increasing indices")); | N_("The edge after the corner in the face, in the direction of increasing indices")); | ||||
| b.add_output<decl::Int>(N_("Previous Edge Index")) | b.add_output<decl::Int>(N_("Previous Edge Index")) | ||||
| .dependent_field() | .field_source_reference_all() | ||||
| .description( | .description( | ||||
| N_("The edge before the corner in the face, in the direction of decreasing indices")); | N_("The edge before the corner in the face, in the direction of decreasing indices")); | ||||
| } | } | ||||
| static int get_loop_edge(const MLoop &loop) | static int get_loop_edge(const MLoop &loop) | ||||
| { | { | ||||
| return loop.e; | return loop.e; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines | |||||