Blender
V3.3
|
#include <string.h>
#include "BLI_alloca.h"
#include "BLI_listbase.h"
#include "BLI_math_base.h"
#include "MEM_guardedalloc.h"
#include "DNA_curve_types.h"
#include "DNA_curveprofile_types.h"
#include "DNA_object_types.h"
#include "BKE_curve.h"
#include "BKE_curveprofile.h"
#include "BKE_displist.h"
Go to the source code of this file.
Typedefs | |
typedef enum CurveBevelFillType | CurveBevelFillType |
Enumerations | |
enum | CurveBevelFillType { BACK = 0 , FRONT , HALF , FULL } |
Functions | |
static CurveBevelFillType | curve_bevel_get_fill_type (const Curve *curve) |
static void | bevel_quarter_fill (const Curve *curve, float *quarter_coords_x, float *quarter_coords_y) |
static void | curve_bevel_make_extrude_and_fill (const Curve *cu, ListBase *disp, const bool use_extrude, const CurveBevelFillType fill_type) |
static void | curve_bevel_make_full_circle (const Curve *cu, ListBase *disp) |
static void | curve_bevel_make_only_extrude (const Curve *cu, ListBase *disp) |
static void | curve_bevel_make_from_object (const Curve *cu, ListBase *disp) |
ListBase | BKE_curve_bevel_make (const Curve *curve) |
Handle curve object data bevel options, both extruding
Definition in file curve_bevel.c.
typedef enum CurveBevelFillType CurveBevelFillType |
enum CurveBevelFillType |
Enumerator | |
---|---|
BACK | |
FRONT | |
HALF | |
FULL |
Definition at line 26 of file curve_bevel.c.
|
static |
Definition at line 45 of file curve_bevel.c.
References angle(), Curve::bevel_mode, Curve::bevel_profile, Curve::bevel_radius, Curve::bevresol, BLI_assert, cosf, CU_BEV_MODE_ROUND, curve, float(), M_PI_2, NULL, CurveProfile::segments, CurveProfile::segments_len, sinf, CurveProfilePoint::x, and CurveProfilePoint::y.
Referenced by curve_bevel_make_extrude_and_fill().
Definition at line 278 of file curve_bevel.c.
References Curve::bevel_mode, Curve::bevel_radius, Curve::bevobj, CU_BEV_MODE_OBJECT, CU_BEV_MODE_ROUND, curve, curve_bevel_get_fill_type(), curve_bevel_make_extrude_and_fill(), curve_bevel_make_from_object(), curve_bevel_make_full_circle(), curve_bevel_make_only_extrude(), Curve::extrude, FULL, and NULL.
|
static |
Definition at line 33 of file curve_bevel.c.
References BACK, CU_BACK, CU_FRONT, curve, Curve::flag, FRONT, FULL, and HALF.
Referenced by BKE_curve_bevel_make().
|
static |
Definition at line 74 of file curve_bevel.c.
References BACK, bevel_quarter_fill(), Curve::bevel_radius, Curve::bevresol, BLI_addtail(), DL_BACK_CURVE, DL_FRONT_CURVE, DL_POLY, DL_SEGM, ELEM, Curve::extrude, DispList::flag, FRONT, FULL, HALF, MEM_callocN, MEM_malloc_arrayN, DispList::nr, DispList::parts, DispList::type, and DispList::verts.
Referenced by BKE_curve_bevel_make().
Definition at line 226 of file curve_bevel.c.
References Curve::bevel_radius, Curve::bevobj, BKE_displist_free(), BLI_addtail(), BLI_assert, Object_Runtime::curve_cache, Object::data, CurveCache::disp, DL_BACK_CURVE, DL_FRONT_CURVE, DL_POLY, DL_SEGM, ELEM, Curve::extrude, ListBase::first, DispList::flag, MEM_malloc_arrayN, MEM_mallocN, DispList::next, DispList::nr, NULL, OB_CURVES_LEGACY, DispList::parts, Object::runtime, Object::scale, DispList::type, Object::type, and DispList::verts.
Referenced by BKE_curve_bevel_make().
Definition at line 184 of file curve_bevel.c.
References angle(), Curve::bevel_radius, Curve::bevresol, BLI_addtail(), cosf, DL_BACK_CURVE, DL_POLY, Curve::extrude, DispList::flag, float(), M_PI, MEM_callocN, MEM_malloc_arrayN, DispList::nr, DispList::parts, sinf, DispList::type, and DispList::verts.
Referenced by BKE_curve_bevel_make().
Definition at line 209 of file curve_bevel.c.
References BLI_addtail(), DL_BACK_CURVE, DL_FRONT_CURVE, DL_SEGM, Curve::extrude, DispList::flag, MEM_callocN, MEM_malloc_arrayN, DispList::nr, DispList::parts, DispList::type, and DispList::verts.
Referenced by BKE_curve_bevel_make().