20 b.add_input<
decl::Geometry>(
"Curve").supported_type(GeometryComponent::Type::Curve);
96 std::atomic<bool> has_curves =
false;
97 std::atomic<bool> has_bezier =
false;
104 if (!attributes.
contains(
"handle_type_left") || !attributes.
contains(
"handle_type_right")) {
113 if (has_curves && !has_bezier) {
114 params.error_message_add(NodeWarningType::Info,
TIP_(
"Input curves do not have Bézier type"));
117 params.set_output(
"Curve", std::move(geometry_set));
129 "NodeGeometryCurveSetHandles",
Low-level operations for curves.
#define NODE_STORAGE_FUNCS(StorageT)
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_CURVE_SET_HANDLE_TYPE
#define BLI_assert_unreachable()
GeometryNodeCurveHandleMode
@ GEO_NODE_CURVE_HANDLE_RIGHT
@ GEO_NODE_CURVE_HANDLE_LEFT
GeometryNodeCurveHandleType
@ GEO_NODE_CURVE_HANDLE_ALIGN
@ GEO_NODE_CURVE_HANDLE_AUTO
@ GEO_NODE_CURVE_HANDLE_FREE
@ GEO_NODE_CURVE_HANDLE_VECTOR
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
bool contains(const StringRef attribute_id) const
MutableSpan< int8_t > handle_types_right_for_write()
void tag_topology_changed()
AttributeAccessor attributes() const
void calculate_bezier_auto_handles()
MutableSpan< int8_t > handle_types_left_for_write()
void set_selection(Field< bool > selection)
IndexMask get_evaluated_selection_as_mask() const
local_group_size(16, 16) .push_constant(Type b
void node_type_storage(bNodeType *ntype, const char *storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
void node_register_type(bNodeType *ntype)
void masked_fill(MutableSpan< T > data, const T &value, const IndexMask &mask)
static void node_geo_exec(GeoNodeExecParams params)
static void set_handle_type(Curves &curves_id, const GeometryNodeCurveHandleMode mode, const HandleType new_handle_type, const Field< bool > &selection_field)
static HandleType handle_type_from_input_type(GeometryNodeCurveHandleType type)
static void node_layout(uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_init(bNodeTree *, bNode *node)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
GPU_SHADER_INTERFACE_INFO(overlay_edit_curve_handle_iface, "vert").flat(Type pos vertex_in(1, Type::UINT, "data") .vertex_out(overlay_edit_curve_handle_iface) .geometry_layout(PrimitiveIn Frequency::GEOMETRY storage_buf(1, Qualifier::READ, "uint", "data[]", Frequency::GEOMETRY) .push_constant(Type Frequency::GEOMETRY selection[]
Curves * get_curves_for_write()
void modify_geometry_sets(ForeachSubGeometryCallback callback)
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeGeometryExecFunction geometry_node_execute
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare