62 for (
const int i_curve :
curves.curves_range()) {
63 const IndexRange points = points_by_curve[i_curve];
68 for (
const int i_point : points) {
92 if (domain != AttrDomain::Point) {
102 static constexpr int8_t id = 0;
110 return AttrDomain::Point;
122 params.
set_output(
"Selection"_ustr, std::move(selection_field));
131 ntype.
ui_name =
"Handle Type Selection";
132 ntype.
ui_description =
"Provide a selection based on the handle types of Bézier control points";
140 "NodeGeometryCurveSelectHandles",
Low-level operations for curves.
#define NODE_STORAGE_FUNCS(StorageT)
#define GEO_NODE_CURVE_HANDLE_TYPE_SELECTION
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define BLI_assert_unreachable()
constexpr MutableSpan slice(const int64_t start, const int64_t size) const
constexpr void fill(const T &value) const
static VArray from_container(ContainerT container)
static Field from_input(Args &&...args)
const bNode & node() const
void set_output(const UString identifier, T &&value)
StructureType structure_type
#define storage(slot, qualifiers)
void node_register_type(bNodeType &ntype)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
static HandleType handle_type_from_input_type(const GeometryNodeCurveHandleType type)
static void node_layout(ui::Layout &layout, bContext *, PointerRNA *ptr)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static void select_by_handle_type(const bke::CurvesGeometry &curves, const HandleType type, const GeometryNodeCurveHandleMode mode, const MutableSpan< bool > r_selection)
static void node_init(bNodeTree *, bNode *node)
GeometryNodeCurveHandleType
@ GEO_NODE_CURVE_HANDLE_FREE
@ GEO_NODE_CURVE_HANDLE_AUTO
@ GEO_NODE_CURVE_HANDLE_VECTOR
@ GEO_NODE_CURVE_HANDLE_ALIGN
BMesh const char void * data
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
void node_free_standard_storage(bNode *node)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
GeometryNodeCurveHandleMode
@ GEO_NODE_CURVE_HANDLE_LEFT
@ GEO_NODE_CURVE_HANDLE_RIGHT
static constexpr int _160
void(*) draw_buttons(ui::Layout &, bContext *C, PointerRNA *ptr)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
void(*) initfunc(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)