|
Blender V4.3
|
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 18 of file node_geo_set_shade_smooth.cc.
References b, blender::nodes::SocketDeclaration::hide_value, and blender::bke::GeometryComponent::Mesh.
Referenced by node_register().
|
static |
Definition at line 80 of file node_geo_set_shade_smooth.cc.
References blender::bke::GeometrySet::get_mesh_for_write(), blender::fn::invert_boolean_field(), blender::bke::GeometrySet::modify_geometry_sets(), params, selection, and set_sharp().
Referenced by node_register().
|
static |
Definition at line 31 of file node_geo_set_shade_smooth.cc.
Referenced by node_register().
|
static |
Definition at line 26 of file node_geo_set_shade_smooth.cc.
References ptr, UI_ITEM_R_EXPAND, and uiItemR().
Referenced by node_register().
|
static |
Definition at line 109 of file node_geo_set_shade_smooth.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons, geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::initfunc, NODE_CLASS_GEOMETRY, node_declare(), node_geo_exec(), node_init(), node_layout(), blender::bke::node_register_type(), node_rna(), blender::bke::bNodeType::rna_ext, and ExtensionRNA::srna.
|
static |
Definition at line 99 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 59 of file node_geo_set_shade_smooth.cc.
References 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 41 of file node_geo_set_shade_smooth.cc.
References blender::fn::FieldNode::depends_on_input(), blender::fn::evaluate_constant_field(), and blender::fn::GFieldBase< NodePtr >::node().
Referenced by set_sharp().