Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Patch proposal: AABB_traits.h

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Patch proposal: AABB_traits.h


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Cc:
  • Subject: Re: [cgal-discuss] Patch proposal: AABB_traits.h
  • Date: Sat, 03 Nov 2012 20:12:17 +0100
  • Organization: GeometryFactory

Sebastian Hegler
<>
writes:

> Hello!
>
> The attached patch exposes the GeomTraits of the AABB_traits class, which
> is basically the CGAL kernel type used for the instantiation, by using a
> public typedef.
> This one-liner makes my work a lot easier. If you find it worthy, feel free
> to include it in the CGAL library.

Technically you would need to add a getter, too. But AABB_traits doesn't
handle stateful traits anyway so it this is pointless. In turn all of
this would need to end up in the AABBTraits concept to be of some actual
use and this would limit all other implementations too far, IMO.

In general: I don't see why AABB_tree even requires that the primitive
type and the traits class are packaged up into a single traits class...

Cheers,
Philipp



Archive powered by MHonArc 2.6.18.

Top of Page