30 {
HD_FREE,
"FREE", 0,
"Free",
""},
31 {
HD_VECT,
"VECTOR", 0,
"Vector",
""},
32 {
HD_ALIGN,
"ALIGNED", 0,
"Aligned",
""},
33 {
HD_AUTO,
"AUTO", 0,
"Auto",
""},
34 {0,
nullptr, 0,
nullptr,
nullptr},
39 {
HD_FREE,
"FREE", ICON_HANDLE_FREE,
"Free",
"Completely independent manually set handle"},
44 "Manually set handle with rotation locked together with its pair"},
49 "Automatic handles that create straight lines"},
54 "Automatic handles that create smooth curves"},
57 ICON_HANDLE_AUTOCLAMPED,
59 "Automatic handles that create smooth curves which only change direction at keyframes"},
60 {0,
nullptr, 0,
nullptr,
nullptr},
69 N_(
"Standard transitions between keyframes")),
74 "No interpolation, value of A gets held until B is encountered"},
79 "Straight-line interpolation between A and B (i.e. no ease in/out)"},
84 "Smooth interpolation between A and B, with some control over curve shape"},
88 N_(
"Predefined inertial transitions, useful for motion graphics "
89 "(from least to most \"dramatic\")")),
94 "Sinusoidal easing (weakest, almost linear but with a slight curvature)"},
95 {
BEZT_IPO_QUAD,
"QUAD", ICON_IPO_QUAD,
"Quadratic",
"Quadratic easing"},
96 {
BEZT_IPO_CUBIC,
"CUBIC", ICON_IPO_CUBIC,
"Cubic",
"Cubic easing"},
97 {
BEZT_IPO_QUART,
"QUART", ICON_IPO_QUART,
"Quartic",
"Quartic easing"},
98 {
BEZT_IPO_QUINT,
"QUINT", ICON_IPO_QUINT,
"Quintic",
"Quintic easing"},
99 {
BEZT_IPO_EXPO,
"EXPO", ICON_IPO_EXPO,
"Exponential",
"Exponential easing (dramatic)"},
104 "Circular easing (strongest and most dynamic)"},
107 N_(
"Simple physics-inspired easing effects")),
108 {
BEZT_IPO_BACK,
"BACK", ICON_IPO_BACK,
"Back",
"Cubic easing with overshoot and settle"},
113 "Exponentially decaying parabolic bounce, like when objects collide"},
118 "Exponentially decaying sine wave, like an elastic band"},
120 {0,
nullptr, 0,
nullptr,
nullptr},
125 {
CU_POLY,
"POLY", 0,
"Poly",
""},
128 {0,
nullptr, 0,
nullptr,
nullptr},
133 {0,
"FULL", 0,
"Full",
""},
134 {
CU_BACK,
"BACK", 0,
"Back",
""},
135 {
CU_FRONT,
"FRONT", 0,
"Front",
""},
137 {0,
nullptr, 0,
nullptr,
nullptr},
145 "Fast without support for self-intersection"},
150 "Constrained Delaunay Triangulation (CDT), robust with support for self-intersections"},
151 {0,
nullptr, 0,
nullptr,
nullptr},
159 "Alternate inside/outside based on crossing count"},
164 "Overlapping curves with the same winding direction are filled as a union"},
165 {0,
nullptr, 0,
nullptr,
nullptr},
169static const EnumPropertyItem curve2d_fill_mode_items[] = {
170 {0,
"NONE", 0,
"None",
""},
171 {
CU_BACK,
"BACK", 0,
"Back",
""},
172 {
CU_FRONT,
"FRONT", 0,
"Front",
""},
174 {0,
nullptr, 0,
nullptr,
nullptr},
182# include <fmt/format.h>
208static Nurb *curve_nurb_from_point(
Curve *cu,
const void *point,
int *nu_index,
int *pt_index)
214 for (nu = nurbs->first(); nu; nu = nu->next, i++) {
216 if (point >=
static_cast<void *
>(nu->bezt) &&
217 point <
static_cast<void *
>(nu->bezt + nu->pntsu))
223 if (point >=
static_cast<void *
>(nu->bp) &&
224 point <
static_cast<void *
>(nu->bp + (nu->pntsu * nu->pntsv)))
238 *pt_index = int(
static_cast<const BezTriple *
>(point) - nu->bezt);
241 *pt_index = int(
static_cast<const BPoint *
>(point) - nu->bp);
251 const Curve *cu =
static_cast<Curve *
>(ptr->data);
252 switch (cu->ob_type) {
254 return RNA_TextCurve;
257 return RNA_SurfaceCurve;
265static void rna_BezTriple_handle1_get(
PointerRNA *ptr,
float *values)
271static void rna_BezTriple_handle1_set(
PointerRNA *ptr,
const float *values)
277static void rna_BezTriple_handle2_get(
PointerRNA *ptr,
float *values)
283static void rna_BezTriple_handle2_set(
PointerRNA *ptr,
const float *values)
289static void rna_BezTriple_ctrlpoint_get(
PointerRNA *ptr,
float *values)
295static void rna_BezTriple_ctrlpoint_set(
PointerRNA *ptr,
const float *values)
310static int rna_Curve_texspace_editable(
const PointerRNA *ptr,
const char ** )
316static void rna_Curve_texspace_location_get(
PointerRNA *ptr,
float *values)
325static void rna_Curve_texspace_location_set(
PointerRNA *ptr,
const float *values)
332static void rna_Curve_texspace_size_get(
PointerRNA *ptr,
float *values)
341static void rna_Curve_texspace_size_set(
PointerRNA *ptr,
const float *values)
348static void rna_Curve_material_index_range(
351 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
357static int rna_ChariInfo_material_index_get(
PointerRNA *ptr)
360 return info->
mat_nr ? info->mat_nr : 0;
363static void rna_ChariInfo_material_index_set(
PointerRNA *ptr,
int value)
369static void rna_Curve_active_textbox_index_range(
372 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
377static void rna_Curve_dimension_set(
PointerRNA *ptr,
int value)
379 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
380 if (value ==
CU_3D) {
394 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
398 curve2d_fill_mode_items);
403 Nurb *nu =
static_cast<Nurb *
>(ptr->data);
407 return nu->
pntsv > 0 ? nu->pntsu * nu->pntsv : nu->pntsu;
410static void rna_Nurb_type_set(
PointerRNA *ptr,
int value)
412 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
413 Nurb *nu =
static_cast<Nurb *
>(ptr->data);
414 const int pntsu_prev = nu->
pntsu;
417 if (nu->pntsu != pntsu_prev) {
425 Nurb *nu =
static_cast<Nurb *
>(ptr->data);
428 static_cast<void *
>(nu->bp),
430 nu->pntsv > 0 ? nu->pntsu * nu->pntsv : nu->pntsu,
435static void rna_Curve_update_data_id(
Main * ,
Scene * ,
ID *
id)
443 rna_Curve_update_data_id(bmain, scene, ptr->owner_id);
449 rna_Curve_update_data(bmain, scene, ptr);
454 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
455 Nurb *nu = curve_nurb_from_point(cu, ptr->data,
nullptr,
nullptr);
461 rna_Curve_update_data(bmain, scene, ptr);
466 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
478 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
490 cu->bevobj =
nullptr;
506 rna_Curve_update_data(bmain, scene, ptr);
509static void rna_Curve_bevel_mode_set(
PointerRNA *ptr,
int value)
511 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
514 if (cu->bevel_profile ==
nullptr) {
525 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
539 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
540 Object *ob = cu->taperobj;
551 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
563 cu->taperobj =
nullptr;
569 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
572 for (
Nurb &nu : *nurbs) {
573 nu.resolu = cu->resolu;
576 rna_Curve_update_data(bmain, scene, ptr);
581 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
584 for (
Nurb &nu : *nurbs) {
585 nu.resolv = cu->resolv;
588 rna_Curve_update_data(bmain, scene, ptr);
591static float rna_Curve_offset_get(
PointerRNA *ptr)
593 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
597static void rna_Curve_offset_set(
PointerRNA *ptr,
float value)
599 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
600 cu->
offset = 1.0f + value;
603static int rna_Curve_body_length(
PointerRNA *ptr);
604static void rna_Curve_body_get(
PointerRNA *ptr,
char *value)
606 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
607 memcpy(value, cu->str, rna_Curve_body_length(ptr) + 1);
610static int rna_Curve_body_length(
PointerRNA *ptr)
612 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
617static void rna_Curve_body_set(
PointerRNA *ptr,
const char *value)
622 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
632 MEM_delete(cu->strinfo);
636 memcpy(cu->str, value, len_bytes + 1);
638 cu->strinfo = MEM_new_array<CharInfo>((len_chars + 4),
"strinfo");
643 Nurb *nu =
static_cast<Nurb *
>(ptr->data);
652 rna_Curve_update_data(bmain, scene, ptr);
657 Nurb *nu =
static_cast<Nurb *
>(ptr->data);
661 rna_Curve_update_data(bmain, scene, ptr);
666 Nurb *nu =
static_cast<Nurb *
>(ptr->data);
671 rna_Curve_update_data(bmain, scene, ptr);
676 Nurb *nu =
static_cast<Nurb *
>(ptr->data);
681 rna_Curve_update_data(bmain, scene, ptr);
684static void rna_Curve_spline_points_add(
ID *
id,
Nurb *nu,
ReportList *reports,
int number)
689 else if (number == 0) {
699 rna_Curve_update_data_id(
nullptr,
nullptr,
id);
703static void rna_Curve_spline_bezpoints_add(
ID *
id,
Nurb *nu,
ReportList *reports,
int number)
708 else if (number == 0) {
717 rna_Curve_update_data_id(
nullptr,
nullptr,
id);
721static Nurb *rna_Curve_spline_new(
Curve *cu,
int type_i)
723 Nurb *nu = MEM_new<Nurb>(
"spline.new");
741 nu->orderu = nu->orderv = 4;
742 nu->resolu = cu->resolu;
743 nu->resolv = cu->resolv;
753 Nurb *nu =
static_cast<Nurb *
>(nu_ptr->data);
762 nu_ptr->invalidate();
768static void rna_Curve_spline_clear(
Curve *cu)
795static void rna_Curve_active_spline_set(
PointerRNA *ptr,
800 Nurb *nu =
static_cast<Nurb *
>(value.data);
812static std::optional<std::string> rna_Curve_spline_path(
const PointerRNA *ptr)
814 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
816 Nurb *nu =
static_cast<Nurb *
>(ptr->data);
820 return fmt::format(
"splines[{}]",
index);
826static std::optional<std::string> rna_Curve_spline_point_path(
const PointerRNA *ptr)
828 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
830 void *point = ptr->data;
831 int nu_index, pt_index;
833 nu = curve_nurb_from_point(cu, point, &nu_index, &pt_index);
837 return fmt::format(
"splines[{}].bezier_points[{}]", nu_index, pt_index);
839 return fmt::format(
"splines[{}].points[{}]", nu_index, pt_index);
844static std::optional<std::string> rna_TextBox_path(
const PointerRNA *ptr)
846 const Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
848 int index = int(tb - cu->tb);
850 if (
index >= 0 && index < cu->totbox) {
851 return fmt::format(
"text_boxes[{}]",
index);
858 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
862static bool rna_Curve_is_editmode_get(
PointerRNA *ptr)
864 const Curve *cu =
reinterpret_cast<const Curve *
>(ptr->owner_id);
866 return (cu->editfont !=
nullptr);
869 return (cu->editnurb !=
nullptr);
873static bool rna_TextCurve_is_select_bold_get(
PointerRNA *ptr)
875 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
876 if (cu->editfont !=
nullptr) {
882static bool rna_TextCurve_is_select_italic_get(
PointerRNA *ptr)
884 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
885 if (cu->editfont !=
nullptr) {
891static bool rna_TextCurve_is_select_underline_get(
PointerRNA *ptr)
893 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
894 if (cu->editfont !=
nullptr) {
900static bool rna_TextCurve_is_select_smallcaps_get(
PointerRNA *ptr)
902 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
903 if (cu->editfont !=
nullptr) {
909static bool rna_TextCurve_has_selection_get(
PointerRNA *ptr)
911 Curve *cu =
reinterpret_cast<Curve *
>(ptr->owner_id);
912 if (cu->editfont !=
nullptr) {
913 return (cu->editfont->selboxes !=
nullptr);
1028 prop,
"rna_BezTriple_handle1_get",
"rna_BezTriple_handle1_set",
nullptr);
1036 prop,
"rna_BezTriple_ctrlpoint_get",
"rna_BezTriple_ctrlpoint_set",
nullptr);
1044 prop,
"rna_BezTriple_handle2_get",
"rna_BezTriple_handle2_set",
nullptr);
1081 "The number of frames that are needed to traverse the path, "
1082 "defining the maximum value for the 'Evaluation Time' setting");
1101 "Clamp the curve path children so they cannot travel past the start/end point of the curve");
1108 "Option for curve-deform: "
1109 "make deformed child stretch along entire path");
1116 "Option for curve-deform: "
1117 "Use the mesh bounds to clamp the deformation");
1124 "Option for paths and curve-deform: "
1125 "apply the curve radius to objects following it "
1126 "and to deformed objects");
1140 {
CU_ALIGN_X_LEFT,
"LEFT", ICON_ALIGN_LEFT,
"Left",
"Align text to the left"},
1142 {
CU_ALIGN_X_RIGHT,
"RIGHT", ICON_ALIGN_RIGHT,
"Right",
"Align text to the right"},
1147 "Align to the left and the right"},
1152 "Align to the left and the right, with equal character spacing"},
1153 {0,
nullptr, 0,
nullptr,
nullptr},
1157 {
CU_ALIGN_Y_TOP,
"TOP", ICON_ALIGN_TOP,
"Top",
"Align text to the top"},
1162 "Align text to the top line's baseline"},
1163 {
CU_ALIGN_Y_CENTER,
"CENTER", ICON_ALIGN_MIDDLE,
"Middle",
"Align text to the middle"},
1168 "Align text to the bottom line's baseline"},
1169 {
CU_ALIGN_Y_BOTTOM,
"BOTTOM", ICON_ALIGN_BOTTOM,
"Bottom",
"Align text to the bottom"},
1170 {0,
nullptr, 0,
nullptr,
nullptr},
1174 {
CU_OVERFLOW_NONE,
"NONE", 0,
"Overflow",
"Let the text overflow outside the text boxes"},
1179 "Scale down the text to fit inside the text boxes"},
1184 "Truncate the text that would go outside the text boxes"},
1185 {0,
nullptr, 0,
nullptr,
nullptr},
1193 "Horizontal Alignment",
1194 "Text horizontal alignment from the object or text box center");
1201 prop,
"Vertical Alignment",
"Text vertical alignment from the object center");
1209 prop,
"TextBox Overflow",
"Handle the text behavior when it does not fit in the text boxes");
1292 "Use objects as font characters (give font objects a common name "
1293 "followed by the character they represent, eg. 'family-a', 'family-b', etc, "
1294 "set this setting to 'family-', and turn on Vertex Instancing)");
1301 prop,
"rna_Curve_body_get",
"rna_Curve_body_length",
"rna_Curve_body_set");
1463 "rna_ChariInfo_material_index_get",
1464 "rna_ChariInfo_material_index_set",
1465 "rna_Curve_material_index_range");
1517 func,
"count", 1, 0,
INT_MAX,
"Number",
"Number of points to add to the spline", 0,
INT_MAX);
1524 parm =
RNA_def_pointer(func,
"spline",
"Spline",
"",
"The spline to remove");
1547 func,
"count", 1, 0,
INT_MAX,
"Number",
"Number of points to add to the spline", 0,
INT_MAX);
1554 parm =
RNA_def_pointer(func,
"spline",
"Spline",
"",
"The spline to remove");
1578 parm =
RNA_def_pointer(func,
"spline",
"Spline",
"",
"The newly created spline");
1585 parm =
RNA_def_pointer(func,
"spline",
"Spline",
"",
"The spline to remove");
1595 prop,
"rna_Curve_active_spline_get",
"rna_Curve_active_spline_set",
nullptr,
nullptr);
1610 "Use Z-Up axis to calculate the curve twist at each point"},
1611 {
CU_TWIST_MINIMUM,
"MINIMUM", 0,
"Minimum",
"Use the least twist over the entire curve"},
1612 {
CU_TWIST_TANGENT,
"TANGENT", 0,
"Tangent",
"Use the tangent to calculate twist"},
1613 {0,
nullptr, 0,
nullptr,
nullptr},
1617 {0,
"2D", 0,
"2D",
"Clamp the Z axis of the curve"},
1622 "Allow editing on the Z axis of this curve, also allows tilt and curve radius to be used"},
1623 {0,
nullptr, 0,
nullptr,
nullptr},
1631 "Map the geometry factor to the number of subdivisions of a spline (U resolution)"},
1636 "Map the geometry factor to the length of a segment and to the number of subdivisions of a "
1642 "Map the geometry factor to the length of a spline"},
1643 {0,
nullptr, 0,
nullptr,
nullptr},
1651 "Use circle for the section of the curve's bevel geometry"},
1656 "Use an object for the section of the curve's bevel geometry segment"},
1661 "Use a custom profile for each quarter of curve's bevel geometry"},
1662 {0,
nullptr, 0,
nullptr,
nullptr},
1670 "Override the radius of the spline point with the taper radius"},
1675 "Multiply the radius of the spline point by the taper radius"},
1680 "Add the radius of the bevel point to the taper radius"},
1681 {0,
nullptr, 0,
nullptr,
nullptr},
1701 "rna_Curve_splines_begin",
1702 "rna_iterator_listbase_next",
1703 "rna_iterator_listbase_end",
1704 "rna_iterator_listbase_get",
1720 prop,
"Bevel Mode",
"Determine how to build the curve's bevel geometry");
1738 prop,
"Bevel Resolution",
"The number of segments in each quarter-circle of the bevel");
1754 "Length of the depth added in the local Z direction along the curve, "
1755 "perpendicular to its normals");
1762 prop,
"Bevel Depth",
"Radius of the bevel geometry, not including extrusion");
1773 "Number of computed points in the U direction between every pair of control points");
1784 "The number of computed points in the V direction between every pair of control points");
1793 "Render Resolution U",
1794 "Surface resolution in U direction used while rendering (zero uses preview resolution)");
1802 "Render Resolution V",
1803 "Surface resolution in V direction used while rendering (zero uses preview resolution)");
1810 "Parametric position along the length of the curve that Objects 'following' it should be "
1811 "at (position is evaluated by dividing by the 'Path Length' value)");
1821 prop,
"Bevel Object",
"The name of the Curve object that defines the bevel shape");
1824 "rna_Curve_bevelObject_get",
1825 "rna_Curve_bevelObject_set",
1827 "rna_Curve_otherObject_poll");
1835 prop,
"Taper Object",
"Curve object name that defines the taper (width)");
1838 "rna_Curve_taperObject_get",
1839 "rna_Curve_taperObject_set",
1841 "rna_Curve_otherObject_poll");
1882 "Determine how the effective radius of the spline point is computed "
1883 "when a taper object is specified");
1890 prop,
"Start Mapping Type",
"Determine how the geometry start factor is mapped to a spline");
1897 prop,
"End Mapping Type",
"Determine how the geometry end factor is mapped to a spline");
1915 prop,
"Map Taper",
"Map effect of the taper object to the beveled part of the curve");
1923 "Auto Texture Space",
1924 "Adjust active object's texture space automatically when transforming object");
1933 prop,
"rna_Curve_texspace_location_get",
"rna_Curve_texspace_location_set",
nullptr);
1942 prop,
"rna_Curve_texspace_size_get",
"rna_Curve_texspace_size_set",
nullptr);
1959 "rna_IDMaterials_assign_int");
1965 "Geometry Start Factor",
1966 "Define where along the spline the curve geometry starts (0 for the "
1967 "beginning, 1 for the end)");
1974 "Geometry End Factor",
1975 "Define where along the spline the curve geometry ends (0 for the "
1976 "beginning, 1 for the end)");
1997 {0,
nullptr, 0,
nullptr,
nullptr},
2008 "Element of a curve, either NURBS, Bézier or Polyline or a character with text objects");
2014 "rna_BPoint_array_begin",
2015 "rna_iterator_array_next",
2016 "rna_iterator_array_end",
2017 "rna_iterator_array_get",
2023 prop,
"Points",
"Collection of points that make up this poly or nurbs spline");
2036 prop,
"Tilt Interpolation",
"The type of tilt interpolation for 3D, Bézier curves");
2043 prop,
"Radius Interpolation",
"The type of radius interpolation for Bézier curves");
2056 prop,
"Points U",
"Total number points for the curve or surface in the U direction");
2063 prop,
"Points V",
"Total number points for the surface on the V direction");
2073 "NURBS order in the U direction. Higher values make each point "
2074 "influence a greater area, but have worse performance.");
2084 "NURBS order in the V direction. Higher values make each point "
2085 "influence a greater area, but have worse performance.");
2108 prop,
"Cyclic U",
"Make this curve or surface a closed loop in the U direction");
2123 "Make this nurbs curve or surface meet the endpoints in the U direction");
2130 prop,
"Endpoint V",
"Make this nurbs surface meet the endpoints in the V direction");
2139 "Make this nurbs curve or surface act like a Bézier spline in the U direction");
2146 prop,
"Bézier V",
"Make this nurbs surface act like a Bézier spline in the V direction");
2170 "Location of this character in the text data (only for text curves)");
#define BLT_I18NCONTEXT_ID_ACTION
#define CTX_N_(context, msgid)
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
#define RNA_TRANSLATION_PREC_DEFAULT
#define RNA_ENUM_ITEM_HEADING(name, description)
void WM_main_add_notifier(uint type, void *reference)
static void rna_def_charinfo(BlenderRNA *brna)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void id_lib_extern(ID *id, bool enforce_fix=false)
void BKE_curveprofile_init(struct CurveProfile *profile, short segments_len)
void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable)
void BKE_nurb_points_add(Nurb *nu, int number)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
static const EnumPropertyItem fill_rule_items[]
static void rna_def_text(BlenderRNA *brna)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
PointerRNA RNA_id_pointer_create(ID *id)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
ListBaseT< Nurb > * BKE_curve_nurbs_get(Curve *cu)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void BKE_nurbList_free(ListBaseT< Nurb > *lb)
static const float tilt_limit
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
bool BKE_nurb_order_clamp_u(Nurb *nu)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
static void rna_def_bpoint(BlenderRNA *brna)
static const EnumPropertyItem curve3d_fill_mode_items[]
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
MINLINE int max_ii(int a, int b)
static void rna_def_curve_nurb(BlenderRNA *brna)
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength)
void BKE_curve_texspace_ensure(Curve *cu)
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
void BKE_nurb_knot_calc_v(Nurb *nu)
void rna_def_animdata_common(StructRNA *srna)
static const EnumPropertyItem curve_type_items[]
void BKE_nurb_bezierPoints_add(Nurb *nu, int number)
static void rna_def_beztriple(BlenderRNA *brna)
static const EnumPropertyItem beztriple_handle_type_items[]
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
static const EnumPropertyItem fill_solver_items[]
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static void rna_def_curve(BlenderRNA *brna)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
static void rna_def_curve_spline_bezpoints(BlenderRNA *brna, PropertyRNA *cprop)
void BKE_nurb_handles_calc(Nurb *nu)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
@ CU_FILL_SOLVER_SWEEP_LINE
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void RNA_api_curve(StructRNA *srna)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
@ CU_BEV_MODE_CURVE_PROFILE
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_curve(BlenderRNA *brna)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
static void rna_def_nurbs(BlenderRNA *, StructRNA *)
static void rna_def_textbox(BlenderRNA *brna)
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
@ CU_TAPER_RADIUS_MULTIPLY
@ CU_TAPER_RADIUS_OVERRIDE
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
const EnumPropertyItem rna_enum_beztriple_interpolation_mode_items[]
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
struct CurveProfile * BKE_curveprofile_add(eCurveProfilePresets preset)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_curve_spline_points(BlenderRNA *brna, PropertyRNA *cprop)
bool BKE_nurb_type_convert(Nurb *nu, eNurbType type, bool use_handles, const char **r_err_msg)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
void DEG_relations_tag_update(Main *bmain)
bool BLI_remlink_safe(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
size_t BLI_strlen_utf8_ex(const char *strc, size_t *r_len_bytes) ATTR_NONNULL(1
void BKE_nurb_knot_calc_u(Nurb *nu)
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, ListBase *lb, IteratorSkipFunc skip)
void RNA_api_curve_nurb(StructRNA *srna)
void BKE_curve_texspace_calc(Curve *cu)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
static void rna_def_curve_splines(BlenderRNA *brna, PropertyRNA *cprop)
void rna_iterator_array_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, void *data, size_t itemsize, int64_t length, bool free_ptr, IteratorSkipFunc skip)
@ CU_ALIGN_Y_TOP_BASELINE
@ CU_ALIGN_Y_BOTTOM_BASELINE
static void rna_def_path(BlenderRNA *, StructRNA *srna)
static void rna_def_surface(BlenderRNA *brna)
bool BKE_nurb_order_clamp_v(Nurb *nu)
void BKE_nurb_free(Nurb *nu)
static void rna_def_font(BlenderRNA *, StructRNA *srna)
void BKE_curve_dimension_update(Curve *cu)
const EnumPropertyItem rna_enum_keyframe_handle_type_items[]
eCurveBevelMode bevel_mode