Differential D16858 Diff 58916 source/blender/nodes/geometry/nodes/node_geo_mesh_topology_offset_corner_in_face.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_mesh_topology_offset_corner_in_face.cc
| Show All 14 Lines | 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_input<decl::Int>(N_("Offset")) | b.add_input<decl::Int>(N_("Offset")) | ||||
| .supports_field() | .supports_field() | ||||
| .description(N_("The number of corners to move around the face before finding the result, " | .description(N_("The number of corners to move around the face before finding the result, " | ||||
| "circling around the start of the face if necessary")); | "circling around the start of the face if necessary")); | ||||
| b.add_output<decl::Int>(N_("Corner Index")) | b.add_output<decl::Int>(N_("Corner Index")) | ||||
| .dependent_field() | .field_source_reference_all() | ||||
| .description(N_("The index of the offset corner")); | .description(N_("The index of the offset corner")); | ||||
| } | } | ||||
| class OffsetCornerInFaceFieldInput final : public bke::MeshFieldInput { | class OffsetCornerInFaceFieldInput final : public bke::MeshFieldInput { | ||||
| const Field<int> corner_index_; | const Field<int> corner_index_; | ||||
| const Field<int> offset_; | const Field<int> offset_; | ||||
| public: | public: | ||||
| ▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines | |||||