24 {GeometryComponent::Type::Curve, GeometryComponent::Type::GreasePencil});
35 const bNode *node =
b.node_or_null();
36 if (node !=
nullptr) {
80 geometry.replace_curves(dst_curves_id);
84 for (
const int layer_index : grease_pencil->layers().index_range()) {
85 Drawing *drawing = grease_pencil->get_eval_drawing(grease_pencil->layer(layer_index));
87 if (drawing ==
nullptr) {
112 geometry.replace_curves(dst_curves_id);
116 for (
const int layer_index : grease_pencil->layers().index_range()) {
117 Drawing *drawing = grease_pencil->get_eval_drawing(grease_pencil->layer(layer_index));
118 if (drawing ==
nullptr) {
142 geometry.replace_curves(dst_curves_id);
146 for (
const int layer_index : grease_pencil->layers().index_range()) {
147 Drawing *drawing = grease_pencil->get_eval_drawing(grease_pencil->layer(layer_index));
148 if (drawing ==
nullptr) {
164 params.set_output(
"Curve", std::move(geometry_set));
174 "Output the input spline's evaluated points, based on the resolution attribute for NURBS "
175 "and Bézier splines. Poly splines are unchanged"},
180 "Sample the specified number of points along each spline"},
185 "Calculate the number of samples by splitting each spline into segments with the specified "
187 {0,
nullptr, 0,
nullptr,
nullptr},
193 "How to specify the amount of samples",
Low-level operations for curves.
Low-level operations for grease pencil.
#define NODE_STORAGE_FUNCS(StorageT)
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_RESAMPLE_CURVE
GeometryNodeCurveResampleMode
@ GEO_NODE_CURVE_RESAMPLE_LENGTH
@ GEO_NODE_CURVE_RESAMPLE_EVALUATED
@ GEO_NODE_CURVE_RESAMPLE_COUNT
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_storage_enum_accessors(member)
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
SIMD_FORCE_INLINE btScalar length(const btQuaternion &q)
Return the length of a quaternion.
bke::CurvesGeometry & strokes_for_write()
const bke::CurvesGeometry & strokes() const
void tag_topology_changed()
static void remember_deformed_positions_if_necessary(GeometrySet &geometry)
local_group_size(16, 16) .push_constant(Type b
void curves_copy_parameters(const Curves &src, Curves &dst)
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)
Curves * curves_new_nomain(int points_num, int curves_num)
CurvesGeometry resample_to_count(const CurvesGeometry &src_curves, const IndexMask &selection, const VArray< int > &counts, const ResampleCurvesOutputAttributeIDs &output_ids={})
CurvesGeometry resample_to_evaluated(const CurvesGeometry &src_curves, const IndexMask &selection, const ResampleCurvesOutputAttributeIDs &output_ids={})
CurvesGeometry resample_to_length(const CurvesGeometry &src_curves, const IndexMask &selection, const VArray< float > &sample_lengths, const ResampleCurvesOutputAttributeIDs &output_ids={})
static void node_init(bNodeTree *, bNode *node)
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
static void node_layout(uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_register()
static void node_rna(StructRNA *srna)
PropertyRNA * RNA_def_node_enum(StructRNA *srna, const char *identifier, const char *ui_name, const char *ui_description, const EnumPropertyItem *static_items, const EnumRNAAccessors accessors, std::optional< int > default_value, const EnumPropertyItemFunc item_func, const bool allow_animation)
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[]
void modify_geometry_sets(ForeachSubGeometryCallback callback)
GreasePencil * get_grease_pencil_for_write()
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeGeometryExecFunction geometry_node_execute
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare