Robert Bragg 114133c98c paint-volume: Fix culling bug to handle partial culls
This updates the inner loops of the cull function so now the vertices of
the polygon being culled are iterated in the inner loop instead of the
clip planes and we count how many vertices are outside the current
plane so we can bail out immediately if all the vertices are outside of
any plane and so we can correctly track partial intersections with the
clip region.

The previous approach could catch some partial intersections but for
example a rectangle that was larger than the clip region centred over
the clip region with all corners outside would be reported as outside,
not as a partial intersection.
2011-04-11 14:31:31 +01:00
..
2011-02-19 16:47:20 +00:00
2011-04-01 18:50:55 +01:00
2011-04-02 22:36:38 +01:00
2010-10-18 11:26:44 +01:00
2010-03-02 11:12:32 +00:00
2010-11-18 18:23:49 +00:00
2010-10-21 12:22:17 +01:00
2010-12-02 09:53:00 +00:00
2009-07-10 11:38:42 +01:00
2010-10-18 11:26:44 +01:00
2010-10-21 12:22:17 +01:00
2010-11-18 18:23:49 +00:00
2011-03-03 11:47:49 +00:00
2010-02-03 14:38:13 +00:00
2010-11-18 18:23:49 +00:00
2010-12-09 13:59:08 +00:00
2010-03-02 11:12:32 +00:00