|
Blender
V2.93
|
#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 (Curve *curve, float *quarter_coords_x, float *quarter_coords_y) |
| static void | curve_bevel_make_extrude_and_fill (Curve *cu, ListBase *disp, const bool use_extrude, const CurveBevelFillType fill_type) |
| static void | curve_bevel_make_full_circle (Curve *cu, ListBase *disp) |
| static void | curve_bevel_make_only_extrude (Curve *cu, ListBase *disp) |
| static void | curve_bevel_make_from_object (Curve *cu, ListBase *disp) |
| void | BKE_curve_bevel_make (Object *ob, ListBase *disp) |
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 40 of file curve_bevel.c.
|
static |
Definition at line 59 of file curve_bevel.c.
References angle(), Curve::bevel_mode, Curve::bevel_profile, Curve::bevresol, BLI_assert, cosf, CU_BEV_MODE_ROUND, curve, Curve::ext2, 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 290 of file curve_bevel.c.
References Curve::bevel_mode, Curve::bevobj, BLI_listbase_clear(), 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(), Object::data, Curve::ext1, Curve::ext2, FULL, and NULL.
Referenced by do_makeDispListCurveTypes().
|
static |
Definition at line 47 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 86 of file curve_bevel.c.
References BACK, bevel_quarter_fill(), Curve::bevresol, BLI_addtail(), DL_BACK_CURVE, DL_FRONT_CURVE, DL_POLY, DL_SEGM, ELEM, Curve::ext1, Curve::ext2, 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 238 of file curve_bevel.c.
References 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::ext1, Curve::ext2, ListBase::first, DispList::flag, MEM_malloc_arrayN, MEM_mallocN, DispList::next, DispList::nr, NULL, OB_CURVE, DispList::parts, Object::runtime, Object::scale, DispList::type, Object::type, and DispList::verts.
Referenced by BKE_curve_bevel_make().
Definition at line 196 of file curve_bevel.c.
References angle(), Curve::bevresol, BLI_addtail(), cosf, DL_BACK_CURVE, DL_POLY, Curve::ext1, Curve::ext2, 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 221 of file curve_bevel.c.
References BLI_addtail(), DL_BACK_CURVE, DL_FRONT_CURVE, DL_SEGM, Curve::ext1, DispList::flag, MEM_callocN, MEM_malloc_arrayN, DispList::nr, DispList::parts, DispList::type, and DispList::verts.
Referenced by BKE_curve_bevel_make().