[Bf-blender-cvs] [1014b23cea0] hair_guides: Tentative DNA structs for groom internals.

Lukas Tönne noreply at git.blender.org
Tue Dec 19 13:56:01 CET 2017


Commit: 1014b23cea08150d4b4179191ab541df1feaf2ea
Author: Lukas Tönne
Date:   Tue Dec 19 10:28:21 2017 +0000
Branches: hair_guides
https://developer.blender.org/rB1014b23cea08150d4b4179191ab541df1feaf2ea

Tentative DNA structs for groom internals.

===================================================================

M	source/blender/makesdna/DNA_groom_types.h

===================================================================

diff --git a/source/blender/makesdna/DNA_groom_types.h b/source/blender/makesdna/DNA_groom_types.h
index ef62d5d317c..0d3e74aa774 100644
--- a/source/blender/makesdna/DNA_groom_types.h
+++ b/source/blender/makesdna/DNA_groom_types.h
@@ -40,12 +40,29 @@
 extern "C" {
 #endif
 
+/* Cross-section of a bundle */
+typedef struct GroomBundleSection {
+	struct GroomBundleSection *next, *prev; /* Pointers for ListBase element */
+	
+	float center[3];                        /* Center point */
+	float normal[3];                        /* Normal direction of the section plane */
+} GroomBundleSection;
+
+/* Bundle of hair strands following the same curve path */
+typedef struct GroomBundle {
+	struct GroomBundle *next, *prev;    /* Pointers for ListBase element */
+	
+	ListBase sections;                  /* List of GroomBundleSection */
+} GroomBundle;
 
 /* Groom curves for creating hair styles */
 typedef struct Groom {
 	ID id;                  /* Groom data is a datablock */
-	struct AnimData *adt;   /* animation data - for animating settings */
+	struct AnimData *adt;   /* Animation data - for animating settings */
+	
+	struct BoundBox *bb;
 	
+	ListBase bundles;       /* List of GroomBundle */
 } Groom;
 
 #ifdef __cplusplus



More information about the Bf-blender-cvs mailing list