Subject: CGAL users discussion list
List archive
- From: Guillaume Damiand <>
- To: "" <>
- Subject: Re: [cgal-discuss] Viewer for Arrangement 2D
- Date: Sat, 3 Aug 2019 15:15:44 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:nNIIYhAw9JMCAdcR5gZdUyQJP3N1i/DPJgcQr6AfoPdwSPTzpMbcNUDSrc9gkEXOFd2Cra4d0ayP6/mrBD1IyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfK1+IA+roQnNq8UajotvJ6IswRbVv3VEfPhby3l1LlyJhRb84cmw/J9n8ytOvv8q6tBNX6bncakmVLJUFDspPXw7683trhnDUBCA5mAAXWUMkxpHGBbK4RfnVZrsqCT6t+592C6HPc3qSL0/RDqv47t3RBLulSwKMSMy/mPKhcxqlK9VoA+vqQJxw4DXbo+aOvVxcaHBct4BSmpNQtxcWjBdDo6ybYYCCfcKM+ZCr4n6olsDtRqwBRStBOPrzj9HnGL23agk3O88Hw/JxgkgH9MUv3TSsdr+KaAfUe+ozKnJyTXDa+lZ2Sr46IfWaBwuvOuDXbdxccXLz0kgChjIjlGRqYz/PjOVzf4BvHSd7+p6TuKjkWAnqxtorzWp28wihI7JhocPxVDF8yV02Jo6JduiSE5ge9KkHoFQuieHPIV1WsMvW3xktSg1x7Ecp5K3YScHxI46yxPcaPGLaZWE7x3iWeqJPDt1in1odKihixqv/kWs0OzxWtWu3FpXrCdIk9/BvW0X2RPJ8MiIUP5981+h2TmR0wDT7flJLlw1larAMZ4h2bswloYLsUjZAy/2nkT2jLGPekUg+umo7OLnbqj8qp+SLY94kgD+MqIwlcyjGek0LwYDUmeB9eiiybHu8lf1TKhJg/A1iKXVrZ/XKMUDqq68GQBV04Ij6xilDzeh1dQVhXYHLE9EeBKDi4jmIUzOIPXmAvulnlujijJrx/HcMb3nH5rANXzDkLb7fbZ88E5Q0hY8zdZF55JPEL0BLujzVlfrtNPEFh85LxC0w+H/Bdph2YMRQ2aPDraEP6PTql+H+v8vI/KXZIIOozb8K/0l5+b0gnMjmF8de7Op3ZoNZ3yiEPRmORbRXX25yNwOGGNPsgslR/Hxk3WDVyRSbjC8Reh0sjo0AYbjAYbYTZ22m5SA2j26F9tYfDYVJEqLFCLHaoSAX/4RbS/aDsZkkzUCWfD1RJIg0RWnqQr3jbZuK+vd/CEwsZP51cMz7OvJjlc872onXIymz2iRQjQszSszTDgs0fUn+B0v+hK4yaF9xsdgO5lW7vJNXB09MMeBneh7EdHpHAnHZMzPRkz0G4z7UwF0dco4xpo1W2g4G9imiUqfjSGrGKUOkqCTQoEy87yZ22n2IZ87xWyUjPB93WljedNGMCidvoA67xLaXtObl0SDlr3sfqIGx2jD7jXbwA==
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 ?
Best
Guillaume
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 Tue, 30 Jul 2019 at 12:27, Laurent Rineau (CGAL/GeometryFactory) <> wrote: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/ ===================================================================
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
- 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.