Blender  V2.93
DNA_curve_defaults.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
21 #pragma once
22 
23 /* Struct members on own line. */
24 /* clang-format off */
25 
26 /* -------------------------------------------------------------------- */
30 #define _DNA_DEFAULT_Curve \
31  { \
32  .size = {1, 1, 1}, \
33  .flag = CU_DEFORM_BOUNDS_OFF | CU_PATH_RADIUS, \
34  .pathlen = 100, \
35  .resolu = 12, \
36  .resolv = 12, \
37  .width = 1.0, \
38  .wordspace = 1.0, \
39  .spacing = 1.0f, \
40  .linedist = 1.0, \
41  .fsize = 1.0, \
42  .ulheight = 0.05, \
43  .texflag = CU_AUTOSPACE, \
44  .smallcaps_scale = 0.75f, \
45  /* This one seems to be the best one in most cases, at least for curve deform. */ \
46  .twist_mode = CU_TWIST_MINIMUM, \
47  .bevfac1 = 0.0f, \
48  .bevfac2 = 1.0f, \
49  .bevfac1_mapping = CU_BEVFAC_MAP_RESOLU, \
50  .bevfac2_mapping = CU_BEVFAC_MAP_RESOLU, \
51  .bevresol = 4, \
52  .bevel_mode = CU_BEV_MODE_ROUND, \
53  .taper_radius_mode = CU_TAPER_RADIUS_OVERRIDE, \
54  }
55 
58 /* clang-format on */