From 88f225f22687323c6858707769489e7094814ef0 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Tue, 2 May 2006 14:35:47 +0000 Subject: 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 --- source/blender/makesdna/DNA_curve_types.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source/blender/makesdna/DNA_curve_types.h') 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; -- cgit v1.2.3