Subject: CGAL users discussion list
List archive
- From: "Ch'Gans" <>
- To:
- Subject: Re: [cgal-discuss] Arrangement observer and notification order
- Date: Mon, 6 Mar 2017 11:37:36 +1300
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:0zYCJBXJMXNXwtWgEByj/hHWnQPV8LGtZVwlr6E/grcLSJyIuqrYYxOEt8tkgFKBZ4jH8fUM07OQ6PG9HzdQqs/f6TgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal8IRiyrQjdrMcbjIhtJqosyxbFv2ZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhN9zY7aYI+bOvljcK3DYdwXXnZBUtpLWiBdHo+wc4kCAuwcNuhYtYn9oF4OoAOwCQSyBOPjyT5GiWXw3a0h3egqDAbL0xAgH9IBqnvUqs71ObwdUeCz1qbE1zLDb+lZ2Trk7oXDbx4vofaJXb1qcMrRz1EiFwLDjlWKqIzqJSmZ1uoXs2Wd8uFuVvqvhnY5pw1tpjWj3MQhh4nTio4L1FzI6T91zJs0KNC8TkNwfMSqH4FKty6AMot7WsMiTH9suCY90rAGvIS0fCkOyJg+3h7faOCLf5GG4h7+VeucJS10hH1ieLK4iBay9VavxvfgWcmz1VZGtitFkt/SuXARzxHf9NSLR/9n8kqi2TuDzR7f5v9YLUwuiKbWKposzqY1lpUJsETDGiH2mF/xjK+Tbkgr5uio6+v9bbXgvZ+RLIB0igTkPaQvnsyzG/g3Mg8LX2SD4+SzyKXj/VHlQLVNlvA5jqbZv4reJcgCu6G5AhRV3Zo+6xakFDery88YnHkCLFJdYh2LlYnpO1fUIPD5F/izmVqskC04j83AJaDrV5XRMmDYwvCmZqd480cayQwpzNkZ6YgTEaAEOPu0W0n/s5vTARY9dgC12O36E84u6oRLUm2GBuqVMbjZrESTzuMpOeiFIoEP6xjnLP1wrdXuwlAwn0RXNf2i3ZQebmuQEfJvZUKDbiy/0Z86DW4Ws19mH6TRg1qYXGsLag==
On 5 March 2017 at 00:02, Efi Fogel
<>
wrote:
> I think that you are correct on both counts.
> It should be symmetric and I'd pick the first order.
> We will fix it.
Should I create a bug report for this?
>
> ____ _ ____ _
> /_____/_) o /__________ __ //
> (____ ( ( ( (_/ (_/-(-'_(/
> _/
>
>
>
> On 2 March 2017 at 06:56, Ch'Gans
> <>
> wrote:
>>
>> When inserting a (isolated) segment:
>> - Before create vertex
>> - After create vertex
>> - Before create vertex
>> - After create vertex
>> - Before create Edge
>> - After create edge
>>
>> When removing a (isolated) segment:
>> - Before remove edge
>> - Before remove vertex
>> - After remove vertex
>> - Before remove vertex
>> - After remove vertex
>> - After remove edge
>>
>>
>> As you can see inserting and removing edges lead to a non symetrical
>> notification ordering, which I think is a bug.
>>
>> I think that the notification ordering when inserting the edge is
>> correct, you start by inserting the first vertex, then the second, and
>> finally you *can* insert the edge since the 2 vertices are "fully"
>> inserted.
>> And so, the notification ordering when removing an edge is bogus, the
>> notifications should be: remove the edge, then remove a vertex (since
>> it is not used by any edge), then remove the other vertex.
>>
>> I'm using the observer to maintain a (Qt) tree model of edges,
>> vertices and faces.
>> With Qt model/view, you *cannot* say:
>> - i'm about to remove something somewhere
>> - i'm about to remove something else somewhere else
>> - i'm have removed something somewhere
>> - i'm have removed something else somewhere else
>>
>> Actually the above could work if 'something else' was a child of
>> 'something', which is not my case, since my root items have 2
>> children:
>> - an Edge list node, whith Edge children
>> - a Vertex list node, with vertex children
>>
>> Now, you might say that it is not because the CGAL ArrangementObserver
>> doesn't behave in a friendly way for my use-case (QAbstractItemModel),
>> that it is broken.
>> True. Nonetheless, I tend to consider non-symetrical behaviour as
>> design errors. In SW design, it usually doesn't make sense to
>> construct something following an order and dis-construct it using a
>> completely different order.
>>
>> What do you guys think?
>>
>> Chris
>>
>> --
>> You are currently subscribed to cgal-discuss.
>> To unsubscribe or access the archives, go to
>> https://sympa.inria.fr/sympa/info/cgal-discuss
>>
>>
>
- [cgal-discuss] Arrangement observer and notification order, Ch'Gans, 03/02/2017
- Re: [cgal-discuss] Arrangement observer and notification order, Efi Fogel, 03/04/2017
- Re: [cgal-discuss] Arrangement observer and notification order, Ch'Gans, 03/05/2017
- Re: [cgal-discuss] Arrangement observer and notification order, Efi Fogel, 03/06/2017
- Re: [cgal-discuss] Arrangement observer and notification order, Ch'Gans, 03/05/2017
- Re: [cgal-discuss] Arrangement observer and notification order, Efi Fogel, 03/04/2017
Archive powered by MHonArc 2.6.18.