#include <ctype.h>
#include <cstdint>

#define MAX_N_BRANCHES 40

typedef struct {
	char ID[6];
	float x;
	float y;
	float z;
	float height;
	float radiusBase;
	float radiusTop;
	char texture[64];
	char species[32];
	char cultivar[32];
	char rootstock[32];
	uint16_t plantingYear;	
	uint8_t row;
	uint16_t position;
	} Tree;

//-------------------------------
//----Branch structure-----------
typedef struct {
	void *parent; // cast to Trunk or Branch
	char ID[6];
	char parentID[6];
	float height;
	float azimuth;
	float angle;
	float length;
	float diameter;
	float curvature;
	char texture[64];
	} Branch;

extern Tree **tree;
extern Branch **branch;

