|
Blender V5.0
|
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_layout (uiLayout *layout, bContext *, PointerRNA *ptr) |
| static void | node_init (bNodeTree *, bNode *node) |
| static bool | try_removing_sharp_attribute (Mesh &mesh, const StringRef name, const Field< bool > &selection, const Field< bool > &sharpness) |
| static void | set_sharp (Mesh &mesh, const AttrDomain domain, const StringRef name, const Field< bool > &selection, const Field< bool > &sharpness) |
| static void | node_geo_exec (GeoNodeExecParams params) |
| static void | node_rna (StructRNA *srna) |
| static void | node_register () |
|
static |
Definition at line 20 of file node_geo_set_shade_smooth.cc.
References b, blender::nodes::SocketDeclaration::description, and blender::nodes::SocketDeclaration::hide_value.
Referenced by node_register().
|
static |
Definition at line 87 of file node_geo_set_shade_smooth.cc.
References blender::geometry::foreach_real_geometry(), blender::bke::GeometrySet::get_mesh_for_write(), blender::fn::invert_boolean_field(), params, and set_sharp().
Referenced by node_register().
Definition at line 38 of file node_geo_set_shade_smooth.cc.
References bNode::custom1.
Referenced by node_register().
|
static |
Definition at line 33 of file node_geo_set_shade_smooth.cc.
References uiLayout::prop(), ptr, and UI_ITEM_R_EXPAND.
Referenced by node_register().
|
static |
Definition at line 116 of file node_geo_set_shade_smooth.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::enum_name_legacy, GEO_NODE_SET_SHADE_SMOOTH, geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::nclass, NODE_CLASS_GEOMETRY, node_declare(), node_geo_exec(), node_init(), node_layout(), blender::bke::node_register_type(), node_rna(), blender::bke::bNodeType::rna_ext, ExtensionRNA::srna, blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
|
static |
Definition at line 106 of file node_geo_set_shade_smooth.cc.
References NOD_inline_enum_accessors, blender::nodes::RNA_def_node_enum(), and rna_enum_attribute_domain_edge_face_items.
Referenced by node_register().
|
static |
Definition at line 66 of file node_geo_set_shade_smooth.cc.
References Geometry::attributes, name, blender::bke::try_capture_field_on_geometry(), and try_removing_sharp_attribute().
Referenced by node_geo_exec().
|
static |
When the sharp_face attribute doesn't exist, all faces are considered smooth. If all faces are selected and the sharp value is a constant false value, we can remove the attribute instead as an optimization to avoid storing it and propagating it in the future.
Definition at line 48 of file node_geo_set_shade_smooth.cc.
References blender::fn::FieldNode::depends_on_input(), blender::fn::evaluate_constant_field(), name, and blender::fn::GFieldBase< NodePtr >::node().
Referenced by set_sharp().