PDA

View Full Version : join points in hourglass direction



giuseppe500
04-26-2010, 05:37 AM
Hy.
I have a list of points in opengl and
I would connect they in hourglass sense for create a 2d poly.
There is a solid algorithm for do that?
thanks.

giuseppe500
04-27-2010, 12:51 AM
up

ZbuffeR
04-27-2010, 01:33 AM
what is hourglass sense ? You mean clockwise order ?
This is math, not OpenGL.
Convex is quite easy, general case is not. Can you detail more ?