Re: Intersect in Canvas



On Tue, 4 Jul 2000, Florent. Devin wrote:

> Hi,
> Is there a way to test if a CanvasItem intersect or 
> will intersect with another CanvasItem ?

Not an easy, user-level way.
For canvasitems having SVP-s (sorted vector paths) - most usual shapes
on aa canvas, you can always do art_svp_intersect and test, if result is
empty. You probably would also want to check their binding boxes
overlapping first :) But such API will be unportable and so should be
implemented inside item definitions.

Regards,
Lauris





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]