Differential D16858 Diff 58932 source/blender/nodes/geometry/nodes/node_geo_mesh_topology_corners_of_face.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_mesh_topology_corners_of_face.cc
| Show All 16 Lines | b.add_input<decl::Float>(N_("Weights")) | ||||
| .supports_field() | .supports_field() | ||||
| .hide_value() | .hide_value() | ||||
| .description(N_("Values used to sort the face's corners. Uses indices by default")); | .description(N_("Values used to sort the face's corners. Uses indices by default")); | ||||
| b.add_input<decl::Int>(N_("Sort Index")) | b.add_input<decl::Int>(N_("Sort Index")) | ||||
| .min(0) | .min(0) | ||||
| .supports_field() | .supports_field() | ||||
| .description(N_("Which of the sorted corners to output")); | .description(N_("Which of the sorted corners to output")); | ||||
| b.add_output<decl::Int>(N_("Corner Index")) | b.add_output<decl::Int>(N_("Corner Index")) | ||||
| .dependent_field() | .field_source_reference_all() | ||||
| .description(N_("A corner of the face, chosen by the sort index")); | .description(N_("A corner of the face, chosen by the sort index")); | ||||
| b.add_output<decl::Int>(N_("Total")) | b.add_output<decl::Int>(N_("Total")) | ||||
| .dependent_field() | .field_source() | ||||
| .reference_pass({0}) | |||||
| .description(N_("The number of corners in the face")); | .description(N_("The number of corners in the face")); | ||||
| } | } | ||||
| class CornersOfFaceInput final : public bke::MeshFieldInput { | class CornersOfFaceInput final : public bke::MeshFieldInput { | ||||
| const Field<int> face_index_; | const Field<int> face_index_; | ||||
| const Field<int> sort_index_; | const Field<int> sort_index_; | ||||
| const Field<float> sort_weight_; | const Field<float> sort_weight_; | ||||
| ▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines | |||||