Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Viewer for Arrangement 2D

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Viewer for Arrangement 2D


Chronological Thread 
  • From: Efi Fogel <>
  • To:
  • Subject: Re: [cgal-discuss] Viewer for Arrangement 2D
  • Date: Tue, 30 Jul 2019 15:41:48 +0300
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:sSVohxXPCt6zeKpTiCgWe/caxNfV8LGtZVwlr6E/grcLSJyIuqrYbBCHt8tkgFKBZ4jH8fUM07OQ7/m6Hz1bqsvY+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/IAiooQnLssQbj4RuJ6YsxhDUvnZGZuNayH9yK1mOhRj8/MCw/JBi8yRUpf0s8tNLXLv5caolU7FWFSwqPG8p6sLlsxnDVhaP6WAHUmoKiBpIAhPK4w/8U5zsryb1rOt92C2dPc3rUbA5XCmp4ql3RBP0jioMKjg0+3zVhMNtlqJWuB2upxJ9zIDUbo+bN+dwcL3Bct4BX2VNQtxcWjZdDo+gbYYCCfcKM+ZCr4n6olsDtRSwBQetBOjyyjFIgXD20rM+0+88FgzJwgIgH9MAsHTTo9X6KqMSXPu6zKnN1zrDbvdW1S3h54jPdxAsuPeBVq9+f8rWzEkgDQLFjlOIpIzkOTOVzOUNvHKB4+puT+Kjk3Ioqw5rrTir3MssjZPJho0NxlDL6yp5x4M1KsOkSE5hYd+kHoFfuD2GN4txWMMjQ3tktzo9yr0Dv5OwYSsEyIw/yhLBd/CKd5KE7xHjWeqLPDt1hXNodKiwihu890Wr1/fyWdOu0FlQqypIitnMuW4J1xzU8sWHT+Fy/kal2TqW1gDT7fxILVk6lafUJZMt2LEwlp0UsUTMGi/5hl/6g7ORdkUh4uSo6uLnbav6ppKEKYN4lgXzPr4tl8G/G+g0LwkDUmmB9emz2rDv5Uj5T69Ljv0ynKnZqpfaJcEDq6GnDQ9V04gj6xGwDzi41NQVhnYHLFdfdxKGi4jlIU3BIPf9DfunmVSjjC9rx+zaPr3mGpjCMnfDn63lfbpk9kFcyREzwsxC55JPEbEMO+nzW0/0tNzAFBA1KQ20w+D9CNV8zIwSQ2yPArXKeJ7UqkKCs+IzP/GXNshSoyf4M/Fj5vj0jHZ/l0VaZrisxZJQaXa2GbNtLEydJHbtmdwcCnxZgg1rR+PjjBiOUCVYem2pd6M6/DAyToy8XqnZQYX4rbKAlAm8EZBSLjRLBFGCFnjlc62LXv4NbGSZJco3wW9MbqSoV4J0jULmjwT90bcydrOJqB1djorq0Z1O38OWlRw28mYpXcGU0mXITmYt221UHHk526dwpUE7wVCGg/Ah365oUOdL7vYMaT8UcIbGxrUjWd/3UwPFONyOTQT+G4T0MXQKVts0huQ2TQN4EtSmgArE2nPzUbAQnr2PQpcz9/CF0g==

Without going too deep into the matter, the _expression_
CGAL::Kernel_traits<Arr_circle_segment_traits_2<K>::Point_2>::Kernel
does 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.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory           http://www.geometryfactory.com/
Release Manager of the CGAL Project       http://www.cgal.org/




--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





Archive powered by MHonArc 2.6.18.

Top of Page