Differential D16083 Diff 56395 source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_neighbors.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_neighbors.cc
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | uint64_t hash() const override | ||||
| /* Some random constant hash. */ | /* Some random constant hash. */ | ||||
| return 985671075; | return 985671075; | ||||
| } | } | ||||
| bool is_equal_to(const fn::FieldNode &other) const override | bool is_equal_to(const fn::FieldNode &other) const override | ||||
| { | { | ||||
| return dynamic_cast<const EdgeNeighborCountFieldInput *>(&other) != nullptr; | return dynamic_cast<const EdgeNeighborCountFieldInput *>(&other) != nullptr; | ||||
| } | } | ||||
| std::optional<eAttrDomain> preferred_domain(const Mesh & /*mesh*/) const override | |||||
| { | |||||
| return ATTR_DOMAIN_EDGE; | |||||
| } | |||||
| }; | }; | ||||
| static void node_geo_exec(GeoNodeExecParams params) | static void node_geo_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| Field<int> neighbor_count_field{std::make_shared<EdgeNeighborCountFieldInput>()}; | Field<int> neighbor_count_field{std::make_shared<EdgeNeighborCountFieldInput>()}; | ||||
| params.set_output("Face Count", std::move(neighbor_count_field)); | params.set_output("Face Count", std::move(neighbor_count_field)); | ||||
| } | } | ||||
| Show All 13 Lines | |||||