solved a bug with half edge mesh
Still need to handle leaves generation (though using half edges for leaves looks a bit extreme)