fmannan wrote:Hello,
I think more than one points may be repeated. If you are trying to construct the hull just by going around the edges of the given polygon and checking for correct turns then try the following case.
input:
1
9
0 0
1 2
2 1
1 1
2 0
3 1
3 3
0 3
0 0
output:
1
6
0 0
2 0
3 1
3 3
0 3
0 0
Fahim
681 - Convex Hull Finding
Moderator: Board moderators
Re: 681 - Convex Hull Finding
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman