Hi guys,
I would like to do algorithm for point in polygon in my program.
here is my program like this. i have a grid with min(0) and max(6) values along X-axis & Z-axis.i didived into cells , each cell is size of 1 by 1. now i taken one polygon(Hexagon(2,0)(4,0)(6,3)(4,6)(2,6)(0,3)) i gone through winding number algorithm from this link
here i am sending each grid vertex and checking with polygon points by using algorithm
but some how i am missing some points.
i want to render the polygon shape by using TRIANGLES so i want to collect the triangle for the polygon from grid.
if u guys are know what i am doing wrong or any better algorithm give me links