Blender V4.3
curve_bevel.cc File Reference
#include <cstring>
#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.hh"
#include "BKE_displist.h"
#include "BKE_object_types.hh"

Go to the source code of this file.

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)
 

Detailed Description

Handle curve object data bevel options, both extruding

Definition in file curve_bevel.cc.

Enumeration Type Documentation

◆ CurveBevelFillType

Enumerator
BACK 
FRONT 
HALF 
FULL 

Definition at line 27 of file curve_bevel.cc.

Function Documentation

◆ bevel_quarter_fill()

static void bevel_quarter_fill ( const Curve * curve,
float * quarter_coords_x,
float * quarter_coords_y )
static

Definition at line 46 of file curve_bevel.cc.

References BLI_assert, cosf, CU_BEV_MODE_ROUND, float, M_PI_2, and sinf.

Referenced by curve_bevel_make_extrude_and_fill().

◆ BKE_curve_bevel_make()

◆ curve_bevel_get_fill_type()

static CurveBevelFillType curve_bevel_get_fill_type ( const Curve * curve)
static

Definition at line 34 of file curve_bevel.cc.

References BACK, CU_BACK, CU_FRONT, FRONT, FULL, and HALF.

Referenced by BKE_curve_bevel_make().

◆ curve_bevel_make_extrude_and_fill()

static void curve_bevel_make_extrude_and_fill ( const Curve * cu,
ListBase * disp,
const bool use_extrude,
const CurveBevelFillType fill_type )
static

◆ curve_bevel_make_from_object()

◆ curve_bevel_make_full_circle()

static void curve_bevel_make_full_circle ( const Curve * cu,
ListBase * disp )
static

◆ curve_bevel_make_only_extrude()

static void curve_bevel_make_only_extrude ( const Curve * cu,
ListBase * disp )
static