diff options
author | Kent Mein <mein@cs.umn.edu> | 2006-05-02 18:35:47 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2006-05-02 18:35:47 +0400 |
commit | 88f225f22687323c6858707769489e7094814ef0 (patch) | |
tree | 0cab503fb0a002f51ec6e30060d74bc2f1267cd2 /source/blender/makesdna | |
parent | 7deaac1d258d1e2f8bab395f35b0931fd5faadda (diff) |
Added some comments on what vec in BezTriple contains.
(Provided by harkyman)
I also added comments explaining what the Blank lines with #
where for above a couple of structures.
(compiler ignores them and they specifiy to makesdna that that structure
can be ignored)
Kent
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_curve_types.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h index 174b17792ce..4d0cca68ad3 100644 --- a/source/blender/makesdna/DNA_curve_types.h +++ b/source/blender/makesdna/DNA_curve_types.h @@ -49,6 +49,7 @@ struct Key; struct Material; struct VFont; +/* These two Lines with # tell makesdna this struct can be excluded. */ # # typedef struct Path { @@ -57,6 +58,7 @@ typedef struct Path { float totdist; } Path; +/* These two Lines with # tell makesdna this struct can be excluded. */ # # typedef struct BevList { @@ -65,6 +67,7 @@ typedef struct BevList { short poly, gat; } BevList; +/* These two Lines with # tell makesdna this struct can be excluded. */ # # typedef struct BevPoint { @@ -73,6 +76,17 @@ typedef struct BevPoint { } BevPoint; /* note; alfa location in struct is abused by Key system */ +/* vec in BezTriple looks like this: + vec[0][0]=x location of handle 1 + vec[0][1]=y location of handle 1 + vec[0][2]=z location of handle 1 (not used for IpoCurve Points(2d)) + vec[1][0]=x location of control point + vec[1][1]=y location of control point + vec[1][2]=z location of control point + vec[2][0]=x location of handle 2 + vec[2][1]=y location of handle 2 + vec[2][2]=z location of handle 2 (not used for IpoCurve Points(2d)) +*/ typedef struct BezTriple { float vec[3][3]; float alfa, weight, pad; |