Idear for a more precise flood fill.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
There is a way of getting a very precise flood fill:
1. Join a copy of all the object to one big object. 2. Create rect which is so huge like the whole document 3. Use path/difference to get a flood fill for all positions. 4. Put the different shapes of the result in thier own objects. 5. Find out which of the result object has been clicked by the flood fill operation and remove the other result objects.
I don't have the time to work myself into the inkscape code, but maybe a inkscape developer like the idear and implement it.
Florian Köberle wrote:
There is a way of getting a very precise flood fill:
- Join a copy of all the object to one big object.
- Create rect which is so huge like the whole document
- Use path/difference to get a flood fill for all positions.
- Put the different shapes of the result in thier own objects.
- Find out which of the result object has been clicked by the flood
fill operation and remove the other result objects.
Hi, Florian. Yes, this is the other way to do the fills, which others have talked about before and which I haven't had the time or knowledge of the Inkscape codebase to work on myself. There are some performance issues that would need to be addressed with this method, especially in documents which would need hundreds of paths to be unioned for each fill operation (not unusual for illustration work). However, a precise fill mode would be very nice to have for situations where bitmap fill wouldn't be totally appropriate, and where performance isn't a huge issue. :)
Thanks,
John
participants (2)
-
Florian Köberle
-
John Bintz