Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-09-20 02:40:44 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-09-20 02:40:44 +0400
commit38f24637d49f6d8742883d50fbae4738de56cd4c (patch)
tree2130195835b7ace773664538006364c21774b675 /source/blender/makesdna/DNA_linestyle_types.h
parent513293a2566016f6e2f1aba00f73910d14e71780 (diff)
Added new line style options for sketchy chaining of feature edges.
The default chaining option is now called "Natural", while the new chaining options are "Sketchy: Topology Preserved" and "Sketchy: Topology broken". The latter two options allow for generating chains of feature edges with a sketchy multiple touch. The "Sketchy: Topology Preserved" option takes account of the topology of objects in the view map, while the "Sketchy: Topology broken" ignores the edge topology. The "rounds" option specifies the number of rounds in sketchy strokes.
Diffstat (limited to 'source/blender/makesdna/DNA_linestyle_types.h')
-rw-r--r--source/blender/makesdna/DNA_linestyle_types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_linestyle_types.h b/source/blender/makesdna/DNA_linestyle_types.h
index 85468ce6657..d3536da2336 100644
--- a/source/blender/makesdna/DNA_linestyle_types.h
+++ b/source/blender/makesdna/DNA_linestyle_types.h
@@ -322,6 +322,11 @@ typedef struct LineStyleThicknessModifier_Calligraphy {
#define LS_MIN_2D_LENGTH 16
#define LS_MAX_2D_LENGTH 32
+/* FreestyleLineStyle::chaining */
+#define LS_CHAINING_NATURAL 1
+#define LS_CHAINING_SKETCHY_TOPOLOGY_PRESERVED 2
+#define LS_CHAINING_SKETCHY_TOPOLOGY_BROKEN 3
+
/* FreestyleLineStyle::caps */
#define LS_CAPS_BUTT 1
#define LS_CAPS_ROUND 2
@@ -334,6 +339,8 @@ typedef struct FreestyleLineStyle {
float r, g, b, alpha;
float thickness;
int flag, caps;
+ int chaining;
+ unsigned int rounds;
float min_length, max_length;
unsigned short dash1, gap1, dash2, gap2, dash3, gap3;
int panel; /* for UI */