|
Blender V5.3
|
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_layout (ui::Layout &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, blender::nodes::SocketDeclaration::hide_value, blender::bke::GeometryComponent::Mesh, and node_declare().
Referenced by node_declare(), and node_register().
|
static |
Definition at line 92 of file node_geo_set_shade_smooth.cc.
References blender::bNode::custom1, blender::nodes::GeoNodeExecParams::extract_input(), blender::geometry::foreach_real_geometry(), blender::bke::GeometrySet::get_mesh_for_write(), blender::fn::invert_boolean_field(), blender::nodes::GeoNodeExecParams::node(), node_geo_exec(), blender::nodes::GeoNodeExecParams::set_output(), and set_sharp().
Referenced by node_geo_exec(), and node_register().
Definition at line 43 of file node_geo_set_shade_smooth.cc.
References node, and node_init().
Referenced by node_init(), and node_register().
|
static |
Definition at line 38 of file node_geo_set_shade_smooth.cc.
References blender::ui::ITEM_R_EXPAND, node_layout(), and blender::ui::Layout::prop().
Referenced by node_layout(), and node_register().
|
static |
Definition at line 122 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, blender::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(), node_register(), blender::bke::node_register_type(), node_rna(), blender::bke::bNodeType::rna_ext, blender::ExtensionRNA::srna, blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
Referenced by node_register().
|
static |
Definition at line 111 of file node_geo_set_shade_smooth.cc.
References NOD_inline_enum_accessors, node_rna(), blender::nodes::RNA_def_node_enum(), and blender::rna_enum_attribute_domain_edge_face_items.
Referenced by node_register(), and node_rna().
|
static |
Definition at line 71 of file node_geo_set_shade_smooth.cc.
References set_sharp(), blender::bke::try_capture_field_on_geometry(), and try_removing_sharp_attribute().
Referenced by node_geo_exec(), and set_sharp().
|
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 53 of file node_geo_set_shade_smooth.cc.
References blender::fn::Field< T >::depends_on_input(), blender::fn::evaluate_constant_field(), and try_removing_sharp_attribute().
Referenced by set_sharp(), and try_removing_sharp_attribute().