TreeLeafState leafState2 = new TreeLeafState();
leafState2.setLeaf3DState(leaf3DState2);
List<TreeLeafState> leaveStates = new ArrayList<TreeLeafState>(2);
leaveStates.add(leafState1);
leaveStates.add(leafState2);
TreeBranchPart3DState part3D = new TreeBranchPart3DState(new Tuple3dState(3.5, 0, 0));
TreeBranchPartState partState = new TreeBranchPartState();
partState.setLeaveStates(leaveStates);
partState.setBranchPart3DState(part3D);
// the branch part is along the X axis
// it starts at 0