On Tue, Dec 29, 2009 at 2:51 PM, Maximilian Albert <maximilian.albert@...1439...> wrote:
So what is the order when the user selects the objects by drawing a rubberband around them, or by using "Select All" (Ctrl+A)? I suppose that it is predictable, but is it transparent to the user? And does it result in the behaviour the user expects (whatever that may be)?
And that is exactly the reason why using selection order is a bad idea. Better use z-order. In a typical situation, it will correspond to the order objects are created, which makes more sense that the random order or selection.
But a still better and more useful approach is to dedect a clockwise order, as I wrote before. This may not be always easy, but it's an interesting mathematical challenge. For example: calculate a center point of objects and rotate clockwise a ray from this center, and process objects in the order in which this ray crosses their bbox centers.