53 ((nu)->orderu + (nu)->pntsu + (((nu)->flagu & CU_NURB_CYCLIC) ? ((nu)->orderu - 1) : 0))
55 ((nu)->orderv + (nu)->pntsv + (((nu)->flagv & CU_NURB_CYCLIC) ? ((nu)->orderv - 1) : 0))
58 #define SEGMENTSU(nu) (((nu)->flagu & CU_NURB_CYCLIC) ? (nu)->pntsu : (nu)->pntsu - 1)
59 #define SEGMENTSV(nu) (((nu)->flagv & CU_NURB_CYCLIC) ? (nu)->pntsv : (nu)->pntsv - 1)
61 #define CU_DO_RADIUS(cu, nu) \
62 ((((cu)->flag & (CU_PATH_RADIUS | CU_3D)) || (cu)->bevobj || (cu)->extrude != 0.0f || \
63 (cu)->bevel_radius != 0.0f) ? \
67 #define CU_IS_2D(cu) (((cu)->flag & CU_3D) == 0)
70 #define CU_DO_2DFILL(cu) (CU_IS_2D(cu) && (((cu)->flag & (CU_FRONT | CU_BACK)) != 0))
94 struct Curve *cu,
const float mat[4][4],
bool do_keys,
bool do_props,
float unit_scale);
130 float (*vert_coords)[3],
134 const float (*vert_coords)[3],
135 const float mat[4][4],
139 const float (*vert_coords)[3],
144 int *r_vert_len))[3];
164 float q0,
float q1,
float q2,
float q3,
float *p,
int it,
int stride);
169 float q0,
float q1,
float q2,
float q3,
float *p,
int it,
int stride);
173 struct rctf *r_rect);
228 const struct Nurb *nu,
float *coord_array,
int rowstride,
int resolu,
int resolv);
248 bool use_cyclic_duplicate_endpoint);
256 unsigned int bezt_array_len,
259 bool use_cyclic_duplicate_endpoint,
357 bool use_around_local);
382 unsigned int bezt_array_len,
388 unsigned int error_target_len);
393 unsigned int error_target_len);
402 const struct Object *ob_target,
403 float (*vert_coords)[3],
411 const struct Object *ob_target,
412 float (*vert_coords)[3],
426 const struct Object *ob_target,
444 bool apply_modifiers);
typedef float(TangentPoint)[2]
void BKE_nurb_handles_calc(struct Nurb *nu)
bool BKE_curve_minmax(struct Curve *cu, bool use_radius, float min[3], float max[3])
bool BKE_curve_nurb_vert_active_get(struct Curve *cu, struct Nurb **r_nu, void **r_vert)
void BKE_curve_bevelList_free(struct ListBase *bev)
bool BKE_nurbList_flag_set_from_flag(ListBase *editnurb, uint8_t from_flag, uint8_t flag)
void BKE_nurb_handle_calc_simple(struct Nurb *nu, struct BezTriple *bezt)
void BKE_nurb_direction_switch(struct Nurb *nu)
void BKE_nurb_handle_calc_ex(struct BezTriple *bezt, struct BezTriple *prev, struct BezTriple *next, eBezTriple_Flag__Alias handle_sel_flag, bool is_fcurve, char smoothing)
bool BKE_curve_center_median(struct Curve *cu, float cent[3])
int BKE_nurbList_verts_count(const struct ListBase *nurb)
void BKE_curve_rect_from_textbox(const struct Curve *cu, const struct TextBox *tb, struct rctf *r_rect)
void BKE_nurb_knot_calc_v(struct Nurb *nu)
bool BKE_nurb_type_convert(struct Nurb *nu, short type, bool use_handles, const char **r_err_msg)
float(* BKE_curve_nurbs_vert_coords_alloc(const struct ListBase *lb, int *r_vert_len))[3]
void BKE_curve_correct_bezpart(const float v1[2], float v2[2], float v3[2], const float v4[2])
void BKE_curve_editfont_free(struct Curve *cu)
void BKE_nurb_index_to_uv(struct Nurb *nu, int index, int *r_u, int *r_v)
bool BKE_nurb_order_clamp_u(struct Nurb *nu)
struct BezTriple * BKE_nurb_bezt_get_next(struct Nurb *nu, struct BezTriple *bezt)
void BKE_nurbList_handles_autocalc(ListBase *editnurb, uint8_t flag)
void BKE_nurb_bezt_calc_plane(struct Nurb *nu, struct BezTriple *bezt, float r_plane[3])
void BKE_nurb_free(struct Nurb *nu)
int eBezTriple_Flag__Alias
bool BKE_curve_material_index_validate(struct Curve *cu)
void BKE_curve_smooth_flag_set(struct Curve *cu, bool use_smooth)
struct ListBase * BKE_curve_editNurbs_get(struct Curve *cu)
void BKE_curve_nurb_vert_active_set(struct Curve *cu, const struct Nurb *nu, const void *vert)
void BKE_curve_texspace_ensure(struct Curve *cu)
void BKE_curve_nurbs_vert_coords_get(const struct ListBase *lb, float(*vert_coords)[3], int vert_len)
struct Curve * BKE_curve_add(struct Main *bmain, const char *name, int type)
void BKE_curve_bevelList_make(struct Object *ob, const struct ListBase *nurbs, bool for_render)
struct Nurb * BKE_nurb_duplicate(const struct Nurb *nu)
int BKE_nurb_index_from_uv(struct Nurb *nu, int u, int v)
void BKE_nurb_bezt_handle_test(struct BezTriple *bezt, eBezTriple_Flag__Alias sel_flag, bool use_handle, bool use_around_local)
int BKE_curve_nurb_vert_index_get(const struct Nurb *nu, const void *vert)
struct BezTriple * BKE_nurb_bezt_get_prev(struct Nurb *nu, struct BezTriple *bezt)
bool BKE_nurb_check_valid_v(const struct Nurb *nu)
bool BKE_nurbList_index_get_co(struct ListBase *editnurb, int index, float r_co[3])
void BKE_curve_translate(struct Curve *cu, const float offset[3], bool do_keys)
struct CurveCache CurveCache
void BKE_curve_nurb_vert_active_validate(struct Curve *cu)
void BKE_curve_editNurb_free(struct Curve *cu)
void BKE_curve_editNurb_keyIndex_delCV(struct GHash *keyindex, const void *cv)
ListBase BKE_curve_bevel_make(const struct Curve *curve)
unsigned int BKE_curve_decimate_bezt_array(struct BezTriple *bezt_array, unsigned int bezt_array_len, unsigned int resolu, bool is_cyclic, char flag_test, char flag_set, float error_sq_max, unsigned int error_target_len)
struct BPoint * BKE_nurb_bpoint_get_next(struct Nurb *nu, struct BPoint *bp)
@ BKE_CURVE_BATCH_DIRTY_SELECT
@ BKE_CURVE_BATCH_DIRTY_ALL
void BKE_curve_deform_coords_with_editmesh(const struct Object *ob_curve, const struct Object *ob_target, float(*vert_coords)[3], int vert_coords_len, int defgrp_index, short flag, short defaxis, struct BMEditMesh *em_target)
void(* BKE_curve_batch_cache_free_cb)(struct Curve *cu)
void BKE_curve_type_test(struct Object *ob)
struct Nurb * BKE_nurb_copy(struct Nurb *src, int pntsu, int pntsv)
void BKE_nurb_bpoint_calc_normal(struct Nurb *nu, struct BPoint *bp, float r_normal[3])
void BKE_nurb_project_2d(struct Nurb *nu)
struct BoundBox * BKE_curve_boundbox_get(struct Object *ob)
void BKE_curve_dimension_update(struct Curve *cu)
void * BKE_curve_vert_active_get(struct Curve *cu)
bool BKE_curve_material_index_used(const struct Curve *cu, int index)
void BKE_curve_material_remap(struct Curve *cu, const unsigned int *remap, unsigned int remap_len)
void BKE_curve_eval_geometry(struct Depsgraph *depsgraph, struct Curve *curve)
void BKE_nurb_bezt_calc_normal(struct Nurb *nu, struct BezTriple *bezt, float r_normal[3])
const struct ListBase * BKE_curve_editNurbs_get_for_read(const struct Curve *cu)
void BKE_nurb_makeFaces(const struct Nurb *nu, float *coord_array, int rowstride, int resolu, int resolv)
bool BKE_nurb_check_valid_u(const struct Nurb *nu)
void BKE_curve_deform_co(const struct Object *ob_curve, const struct Object *ob_target, const float orco[3], float vec[3], int no_rot_axis, float r_mat[3][3])
void BKE_curve_deform_coords(const struct Object *ob_curve, const struct Object *ob_target, float(*vert_coords)[3], int vert_coords_len, const struct MDeformVert *dvert, int defgrp_index, short flag, short defaxis)
unsigned int BKE_curve_calc_coords_axis_len(unsigned int bezt_array_len, unsigned int resolu, bool is_cyclic, bool use_cyclic_duplicate_endpoint)
struct BPoint * BKE_nurb_bpoint_get_prev(struct Nurb *nu, struct BPoint *bp)
void BKE_nurb_bpoint_calc_plane(struct Nurb *nu, struct BPoint *bp, float r_plane[3])
void BKE_curve_forward_diff_bezier(float q0, float q1, float q2, float q3, float *p, int it, int stride)
void BKE_nurbList_handles_set(struct ListBase *editnurb, char code)
void BKE_nurb_points_add(struct Nurb *nu, int number)
short BKE_curve_type_get(const struct Curve *cu)
int BKE_nurbList_verts_count_without_handles(const struct ListBase *nurb)
void BKE_nurb_knot_calc_u(struct Nurb *nu)
void(* BKE_curve_batch_cache_dirty_tag_cb)(struct Curve *cu, int mode)
void BKE_nurb_makeCurve(const struct Nurb *nu, float *coord_array, float *tilt_array, float *radius_array, float *weight_array, int resolu, int stride)
void BKE_curve_init(struct Curve *cu, short curve_type)
void BKE_nurbList_duplicate(struct ListBase *lb1, const struct ListBase *lb2)
void BKE_curve_forward_diff_tangent_bezier(float q0, float q1, float q2, float q3, float *p, int it, int stride)
void BKE_curve_transform(struct Curve *cu, const float mat[4][4], bool do_keys, bool do_props)
void BKE_curve_calc_coords_axis(const struct BezTriple *bezt_array, unsigned int bezt_array_len, unsigned int resolu, bool is_cyclic, bool use_cyclic_duplicate_endpoint, unsigned int axis, unsigned int stride, float *r_points)
void BKE_nurb_handles_test(struct Nurb *nu, bool use_handles, bool use_around_local)
void BKE_nurbList_free(struct ListBase *lb)
void BKE_curve_material_index_clear(struct Curve *cu)
void BKE_curve_nurbs_vert_coords_apply_with_mat4(struct ListBase *lb, const float(*vert_coords)[3], const float mat[4][4], bool constrain_2d)
struct Nurb * BKE_curve_nurb_active_get(struct Curve *cu)
const ListBase * BKE_curve_nurbs_get_for_read(const struct Curve *cu)
void BKE_nurbList_flag_set(ListBase *editnurb, uint8_t flag, bool set)
void BKE_nurb_handle_calc_simple_auto(struct Nurb *nu, struct BezTriple *bezt)
void BKE_nurb_handle_calc(struct BezTriple *bezt, struct BezTriple *prev, struct BezTriple *next, bool is_fcurve, char smoothing)
void BKE_nurb_minmax(const struct Nurb *nu, bool use_radius, float min[3], float max[3])
void BKE_nurb_handles_autocalc(struct Nurb *nu, uint8_t flag)
void BKE_curve_nurbs_key_vert_tilts_apply(struct ListBase *lb, const float *key)
void BKE_curve_transform_ex(struct Curve *cu, const float mat[4][4], bool do_keys, bool do_props, float unit_scale)
bool BKE_nurb_check_valid_uv(const struct Nurb *nu)
void BKE_curve_batch_cache_free(struct Curve *cu)
void BKE_curve_nurbs_vert_coords_apply(struct ListBase *lb, const float(*vert_coords)[3], bool constrain_2d)
bool BKE_nurb_order_clamp_v(struct Nurb *nu)
struct Curve * BKE_curve_new_from_object(struct Object *object, struct Depsgraph *depsgraph, bool apply_modifiers)
float BKE_nurb_calc_length(const struct Nurb *nu, int resolution)
bool BKE_curve_center_bounds(struct Curve *cu, float cent[3])
void BKE_nurb_bezierPoints_add(struct Nurb *nu, int number)
void BKE_curve_editNurb_keyIndex_free(struct GHash **keyindex)
void BKE_curve_nurb_active_set(struct Curve *cu, const struct Nurb *nu)
ListBase * BKE_curve_nurbs_get(struct Curve *cu)
float(* BKE_curve_nurbs_key_vert_coords_alloc(const struct ListBase *lb, float *key, int *r_vert_len))[3]
void BKE_curve_decimate_nurb(struct Nurb *nu, unsigned int resolu, float error_sq_max, unsigned int error_target_len)
bool BKE_nurb_valid_message(int pnts, short order, short flag, short type, bool is_surf, int dir, char *message_dst, size_t maxncpy)
void BKE_curve_texspace_calc(struct Curve *cu)
void BKE_nurb_handle_smooth_fcurve(struct BezTriple *bezt, int total, bool cyclic)
void BKE_curve_batch_cache_dirty_tag(struct Curve *cu, int mode)
void BKE_nurbList_handles_recalculate(struct ListBase *editnurb, bool calc_length, uint8_t flag)
struct CVKeyIndex CVKeyIndex
void BKE_curve_material_index_remove(struct Curve *cu, int index)
struct Depsgraph Depsgraph
These structs are the foundation for all linked lists in the library system.
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei stride
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint order
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble v1
ATTR_WARN_UNUSED_RESULT const BMVert * v2
ATTR_WARN_UNUSED_RESULT const BMVert * v
const Depsgraph * depsgraph
SyclQueue void void * src
SyclQueue void void size_t num_bytes void
static bool is_cyclic(const Nurb *nu)
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
SymEdge< T > * prev(const SymEdge< T > *se)
const float * anim_path_accum_length