The polygon has no inner loop, and may intersect itself, Does OpenGL provide any method to display such polygon?

I think the scan line algorithm can meet my desire, but how in OpenGL?

Thank you!

The polygon has no inner loop, and may intersect itself, Does OpenGL provide any method to display such polygon?

I think the scan line algorithm can meet my desire, but how in OpenGL?

Thank you!

OpenGL only guarantees correct drawing of convex polygons. Concave polygons gives an undefined behaviour.

GLU provides some functions for concave polygons I believe.

Originally posted by Bob:

[b]OpenGL only guarantees correct drawing of convex polygons. Concave polygons gives an undefined behaviour.

GLU provides some functions for concave polygons I believe.[/b]

Hehe, I found that use of stencil buffer can solve this problem, and itâ€™s a bit faster tesslation.