GraphTea icon indicating copy to clipboard operation
GraphTea copied to clipboard

the banana tree vertex positioning, sucks

Open azinazadi opened this issue 12 years ago • 5 comments

it is like this: Screenshot_08 04 13_11_43

it should be like this: Screenshot_08 04 13_11_44-5

this is very important issue, because banana tree is the most used generator in graphtea. probably because it is the first item in the generate menu

azinazadi avatar Apr 08 '13 09:04 azinazadi

I tested different ones. It seems the problem comes only when k is equal to 2 or 3. It happens because the vertices in the second level are going to be around a center and in the cases 2 or 3 the angle is 180 degree. However I am correcting just these two cases. Inform me if you think I am not correct.

rostam avatar Apr 15 '13 11:04 rostam

I corrected the positions. Please check if it is OK, close this ticket.

rostam avatar Apr 15 '13 12:04 rostam

its still problematic. the real solution is to devide the leafs circle into k+1 segments, as it is shown above, for k=2, we should make it to 3 segments, which one of them dont get used, belongs to the root. image

azinazadi avatar Apr 15 '13 18:04 azinazadi

OK, I think it is corrected now. For the even numbers, it looks good. What do you think about odd numbers? I think it is OK. 3_and_6 4_and_5

rostam avatar Apr 17 '13 10:04 rostam

The default value in the menu is changed to 4,4.

rostam avatar Apr 17 '13 10:04 rostam