'Filling' the gaps between lines
Answered
- Need more info
- Answered
- Working on it
I'm trying to work out the logic for how I'd accomplish this.
Let's say I've got a couple of lines that intersect, like this:
http://farm9.staticflickr.com/8530/8554745759_ffc2b255fa_o.png
I'd like to then fill in the blank spaces like this:
http://farm9.staticflickr.com/8242/8555855632_c6780cf35f_o.png
I know you're probably thinking I should just draw a triangle and fill it, but I'd like to draw many lines, and have the blank spaces filled at random after they intersect.
Should I just use triangles and try to make them aware of where they are relative to each other? Or is there a more obvious solution I'm overlooking?
Let's say I've got a couple of lines that intersect, like this:
http://farm9.staticflickr.com/8530/8554745759_ffc2b255fa_o.png
I'd like to then fill in the blank spaces like this:
http://farm9.staticflickr.com/8242/8555855632_c6780cf35f_o.png
I know you're probably thinking I should just draw a triangle and fill it, but I'd like to draw many lines, and have the blank spaces filled at random after they intersect.
Should I just use triangles and try to make them aware of where they are relative to each other? Or is there a more obvious solution I'm overlooking?
1