On 10/31/06, Ted Gould <ted@...11...> wrote:
What I'm curious about is the edges. If you look at the attached PNG what you get is transparent edges, which really isn't what the gradient specified. I think that the edges have to be backed up with another object... the question is what.
See my other mail - we just need to pad the edge segments so they extend beyond the clip by at least the blur radius. I just tested it and it works fine, no more transparency at the edges.
With a real mesh with many cells, this only has to be done for the cells on the edge of the mesh - intercell boundaries inside the mesh will need no clipping at all, it will be just a continuous field of fragments.
Another consideration: the size of the fragment must adjust automatically by taking the _smallest_ cell in the mesh and subdividing it into a user-settable number of fragments. Then, larger cells should use the same fragment _size_, not the same number of subdivisions. This is because we have one single blur radius for the whole object, and that blur cannot be bigger than the smallest fragment size.
So, the toughest problem is the subdivision algorithm that would smoothly and naturally slice up a 4-sided beziergon. Help from lib2geom gurus will be appreciated :)