I have a Triangle,with vertices (x1,y1,z1); (x2,y2,z2), (x3,y3,z3). Now,I find the bounding box of my triangle in the following way:
->Loop through all the vertices of my triangle and find xmin, xmax,ymin, ymax and also zmin, zmax.
->Now,my bounding box will be a cube of length = Maximum(xmax-xmin, ymax-ymin,zmax-zmin).
I now discretize my whole bounding box into small grids with some resolution(h). For example,if my bounding box is of length 10,I have 1000(10*10*10) small cubes(grids) of size 1. Now,I want to find some sampling points inside my triangle,such that inside region of my triangle is completely filled(without any voids) with grids(small cubes).
I would be really glad,if someone can explain an efficient algorithm.
Thanks in Advance.