16 b.use_custom_socket_order();
17 b.allow_any_socket_order();
19 .supported_type(GeometryComponent::Type::Mesh)
21 b.add_output<
decl::Geometry>(
"Mesh").propagate_all().align_with_previous();
38 if (
mask.is_empty()) {
47 params.set_output(
"Mesh", std::move(geometry_set));
56 ntype.
ui_description =
"Duplicate mesh edges and break connections with the surrounding faces";
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_SPLIT_EDGES
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void set_selection(Field< bool > selection)
IndexMask get_evaluated_selection_as_mask() const
ccl_device_inline float2 mask(const MaskType mask, const float2 a)
void node_register_type(bNodeType &ntype)
void foreach_real_geometry(bke::GeometrySet &geometry, FunctionRef< void(bke::GeometrySet &geometry_set)> fn)
void split_edges(Mesh &mesh, const IndexMask &selected_edges, const bke::AttributeFilter &attribute_filter={})
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
const Mesh * get_mesh() const
Mesh * get_mesh_for_write()
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare