18 b.add_output<
decl::Bool>(
"Selection").field_source();
57 const OffsetIndices points_by_curve = curves.points_by_curve();
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) {
82 : bke::CurvesFieldInput(
CPPType::get<bool>(),
"Handle Type Selection node"),
90 const AttrDomain domain,
93 if (domain != AttrDomain::Point) {
111 return mode_ == other_handle_selection->mode_ && type_ == other_handle_selection->type_;
118 return AttrDomain::Point;
129 Field<bool> selection_field{std::make_shared<HandleTypeFieldInput>(handle_type, mode)};
130 params.set_output(
"Selection", std::move(selection_field));
138 &ntype, GEO_NODE_CURVE_HANDLE_TYPE_SELECTION,
"Handle Type Selection",
NODE_CLASS_INPUT);
143 "NodeGeometryCurveSelectHandles",
Low-level operations for curves.
#define NODE_STORAGE_FUNCS(StorageT)
#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)
constexpr MutableSpan slice(const int64_t start, const int64_t size) const
constexpr void fill(const T &value) const
static VArray ForContainer(ContainerT container)
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)
static HandleType handle_type_from_input_type(const GeometryNodeCurveHandleType type)
static void node_layout(uiLayout *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)
uint64_t get_default_hash(const T &v)
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[]
unsigned __int64 uint64_t
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeGeometryExecFunction geometry_node_execute
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare