I wish to fill all points on a plane defined by three points such that:
- All points' coordinates are integers, i.e, there are no points with decimal coordinates.
- All points on such plane are not outside the boundaries formed by the three points which define said plane
For example, given the plane P defined by the points A(3, 0, 0), B(0, 3, 0) and C(0, 0, 3):
- The point D(1, 1, 1) satisfies this condition
- The point E(6, 3, -6) does not satisfy this condition because it is on the plane but outside the boundaries
- The point F(4, 1, 3) does not satisfy this condition because it is not on the plane
I've tried applying Bresenham's 3d line algorithm and extend it to plane drawing but I can't figure it out.