I need an algorithm for triangulating polygons, but there's a catch:
I want to draw arbitrarily shaped polygons, but they don't need to be texture mapped or anything - just paint-filled. The API doesn't matter. The point is, I have a polygon that could be any shape, convex or concave, and it lies flat on a plane, but that plane can be anywhere in 3D space.
The problem is that I also need the vertices of the polygon to be able to move freely, while staying on that plane. If they're moving gradually in real time and I want to draw every frame, what happens if a point changes from being convex to concave or vice versa?
Do I have to reconstruct the whole thing from scratch every time a vertex moves? I know how to do that, but wouldn't it be inefficient and stupid, or is there any possible way around that?