Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Viewer for Arrangement 2D
- Date: Sat, 3 Aug 2019 16:48:49 +0300
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:KpBUHxXg6TFelmS4GYvd0ycZpMvV8LGtZVwlr6E/grcLSJyIuqrYYxeHt8tkgFKBZ4jH8fUM07OQ7/m6HzVYuN3f7jgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrswndrNQajZd/Jqo+yxbEo2ZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhNwzY7bYoGbOvR9cK3AY90VWXFMUdxNWyFbGI6wc5cDAugHMO1Fr4f9vVwOrR6mCAejCuPvyyJDiH/x3a01zeshFRzN0Qs+ENIAsXTUotL1NKgMXuCx16TIwjDDYOlX2Tf58oTHbhchofSVUL92bMHfx04vFwbfgVWRr4zoJy+a1uIXs2iA9eZgW/ivhmg6oA9yujii3tkghpXNi44PyV3J9T91zJs0KNC5UkJ2bt+pHZ1NvC+ALYR2WNktQ2RwtSY61LIGvZm7cTAPyJs9xh7fb+WLc4mP4h7+TeqRLzh1iXN/dLKwgBay9kegyuniWcWuzFlKqS9FnsHNtnALyRPT9tCKRuVh8kqlwzqC1ADe5vtZLU01lKfXMZEsz78ompoWq0vDHyv2mEvsjK+Rc0Up4van6+rmYrXooZ+cOJF7igXlP6Qhn8ywG+U4MgwUU2eH/uS80aXv/VflT7VSkv02jq7ZvYjGKsQUvKG5BxZZ3Zsi6xakEzimzc8YnWIcIVJeeBOHipDpNEvULPD5C/e/mVWsny1xy/DIJL2ySqnKe3PMmbOkcbdm4FNH0yIyy8pe7tRaEOIvOvX2D2L/tZT2CRA0N0TgzujmBtJy24c2VmeGA6vfO6TX5wzbrtkzKvWBMddG8A32LOIosqa30C0J3GQFdKzs5qM5LXC1GvM8fhecaHvox9YGSCIE4lR4Q+vth1mPFzVUYiTqBv5u1nQAEIujSLz7aMW1mrXYhXW0G5RXYiZNDVXeSS65JbXBYO8FbWepGuEklzUFUba7TIp4jEOhsQb7z/xsKe+GoyA=
In some traits there is no kernel, or at least, there is no retation between the point type of the traits and a kernel. BW, a traits defines 3 types:
Point_2,
X_monotone_curve_2, and
Curve_2
The later is defined only by some of the traits, depending on the concept.
Thanks for the answers.
Maybe it makes sense, but in the basic viewer, I need a specialized function for each possible type of point in CGAL.Which types I can use for arrangement ?
BestGuillaume
Le 30/07/2019 à 14:41, Efi Fogel a écrit :
Without going too deep into the matter, the _expression_CGAL::Kernel_traits<Arr_circle_segment_traits_2<K>::Point_2>::Kerneldoes not make much sense.Yes, there is a kernel involved, but in general, you do not know how, and in particular, the point type is not Kernel::Point_2.The same holds for other traits.In addition, a kernel may have state, so even if you obtain the type, it's not always wise, or even legal, to define a kernel object and use it. It should be up to the user to define and use a kernel.
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
On Tuesday, July 30, 2019 10:51:37 AM CEST Laurent Rineau (CGAL/
GeometryFactory) wrote:
> On Tuesday, July 30, 2019 9:29:10 AM CEST Guillaume Damiand wrote:
> > Hello;
> >
> > The problem comes from CGAL::Kernel_traits, used to retrieve the kernel
> > given the type of a Point.
> >
> > CGAL::Kernel_traits<Arr_circle_segment_traits_2<K>::Point_2>::Kernel is
> > Dummy_kernel
> >
> > Is it a bug or is it normal ? I would like to obtain K.
>
> That is strange. When `Kernel_traits` return `Dummy_kernel`, that means that
> the type `Point_2` does not a nested `R` type. What is the kernel `K`, in
> your example?
Actually, the issue is that `Arr_circle_segment_traits_2<K>::Point_2` is a
special class `_One_root_point_2<NT, Filter>` defined in `<CGAL/
Arr_geometry_traits/Circle_segment_2.h>` and not related to any kernel.
--
-- =================================================================== Guillaume DAMIAND CNRS - LIRIS UMR 5205 Université Claude Bernard Bâtiment Nautibus (710) 43 Boulevard du 11 Novembre 1918 69622 Villeurbanne Cedex (France) ------------------------------------------------------------------- Tél: +33 (0)4.72.43.14.34 Fax: +33 (0)4.72.43.15.36 Mail: Web: http://liris.cnrs.fr/guillaume.damiand/ ===================================================================
- Re: [cgal-discuss] Viewer for Arrangement 2D, Guillaume Damiand, 08/03/2019
- Re: [cgal-discuss] Viewer for Arrangement 2D, Efi Fogel, 08/03/2019
- Re: [cgal-discuss] Viewer for Arrangement 2D, jasmeet.singh, 08/09/2019
- Re: [cgal-discuss] Viewer for Arrangement 2D, Efi Fogel, 08/03/2019
Archive powered by MHonArc 2.6.18.