cut= cuts a polygon (ie a filled path), along another path, not necessary closed. for example, do a circle, a path making a wave over it, and cut => the circle is split in above wave and under wave. in illustrrator 10, it's called "divide objects below" (it's a shame it can't operate on shapes created via the pathfinder). of course, it's a minor change from the intersection/difference combo
Yess! That's what is really needed - sorry in my haste I did not check it properly. Indeed it works and is very useful. I will add it to the menu as Divide (Ctrl+/).
It needs one fix: the command must be undone in one step. Now it needs two ctrl-z to fully undo it.
slice= cuts a path into pieces (ie strokes, not filled paths), with one cut at each point where it intersects with the cutting path. the rect you give in your example is a "bad" example, because it's a path arranged like "topleft corner -> bottomleft ->bottomright ->topright ->topleft", so it has 2 intersections with the oval, and the path is cut in 3 pieces (maybe the first and last part should remain glued, tho, since the path is supposed to be closed). sort of a razor tool.
OK, now I understand. Maybe this can be useful too. I think this should be called "Cut Path" in the menu. Besides, I think this command must also remove the fill, if any is present, from the result, otherwise the result looks very strange and bug-like. Since this command is supposed to work on fill-less paths, I think it's logical if it removes fill from the path it cuts.
Also, this command must also be fixed with regard to undo (this one requires 3 undo steps!). Perhaps you'll just have to remove extra calls to sp_document_done.
I will now commit your patch with menu commands added and with my compilation fixes, and you'll be able to work from CVS to fix the above problems, OK?
_________________________________________________________________ http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI...