Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_input_mesh_face_area.cc
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | uint64_t hash() const override | ||||
| /* Some random constant hash. */ | /* Some random constant hash. */ | ||||
| return 1346334523; | return 1346334523; | ||||
| } | } | ||||
| bool is_equal_to(const fn::FieldNode &other) const override | bool is_equal_to(const fn::FieldNode &other) const override | ||||
| { | { | ||||
| return dynamic_cast<const FaceAreaFieldInput *>(&other) != nullptr; | return dynamic_cast<const FaceAreaFieldInput *>(&other) != nullptr; | ||||
| } | } | ||||
| std::optional<eAttrDomain> preferred_domain(const Mesh & /*mesh*/) const override | |||||
| { | |||||
| return ATTR_DOMAIN_FACE; | |||||
| } | |||||
| }; | }; | ||||
| static void node_geo_exec(GeoNodeExecParams params) | static void node_geo_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| params.set_output("Area", Field<float>(std::make_shared<FaceAreaFieldInput>())); | params.set_output("Area", Field<float>(std::make_shared<FaceAreaFieldInput>())); | ||||
| } | } | ||||
| } // namespace blender::nodes::node_geo_input_mesh_face_area_cc | } // namespace blender::nodes::node_geo_input_mesh_face_area_cc | ||||
| Show All 11 Lines | |||||