Is anyone know that how to get the x and y points inside the polygon using C++ program?
I have the given polygon data to draw the polygon, but i don't know how to get all the points inside the polygon.
Eg. Let's say we have 5 points to draw a polygon.
Expand|Select|Wrap|Line Numbers
- Polygon
- ---------------------
- | Region A /
- | \
- \--------------------
Above polygon is just to show you as example. In reality, the polygon is not that simple and really complex.
Any algorithm or ideas to get the points?
Thanks.
-Jason