00001 00032 // Common data for trees shared between simulator and viewer 00033 00034 #ifndef LL_LLTREE_COMMON_H 00035 #define LL_LLTREE_COMMON_H 00036 00037 struct LLTree_gene_0 00038 { 00039 // 00040 // The genome for a tree, species 0 00041 // 00042 U8 scale; // Scales size of the tree ( / 50 = meter) 00043 U8 branches; // When tree forks, how many branches emerge? 00044 U8 twist; // twist about old branch axis for each branch (convert to degrees by dividing/255 * 180) 00045 U8 droop; // Droop away from old branch axis (convert to degrees by dividing/255 * 180) 00046 U8 species; // Branch coloring index 00047 U8 trunk_depth; // max recursions in the main trunk 00048 U8 branch_thickness; // Scales thickness of trunk ( / 50 = meter) 00049 U8 max_depth; // Branch Recursions to flower 00050 U8 scale_step; // How much to multiply scale size at each recursion 0-1.f to convert to float 00051 }; 00052 00053 #endif