Subject: CGAL users discussion list
List archive
- From: Sylvain Pion <>
- To:
- Subject: Re: [cgal-discuss] Re: Hilbert Sort on a User Defined Point
- Date: Tue, 10 Aug 2010 16:42:35 +0200
- Organization: INRIA
Your error message doesn't mention CGAL at all.
You seem to call std::sort() on an std::vector<your Point3>,
but your Point3 is not LessThanComparable (it lacks operator<).
So, to me, this is totally unrelated. Not knowing what is in nn_test.cpp,
I can't tell more.
I pass this into Hilbert_sort_3 as the Traits. I'm pretty sure that my
problem is the CGAL kernel. I don't know how to give my class the model for
a CGAL Kernel. Should I have Spatial_sorting_traits extend the Kernel I use
for my point (which is just a simple one I wrote for my point class)?
If you only use the spatial sort functions, then when you have is OK
(modulo the missing consts on the copy-ctor and the function operators).
Just make sure "p.x() < q.x()" and such are valid expressions for your
point type.
--
Sylvain
- [cgal-discuss] Hilbert Sort on a User Defined Point, Derek Basehore, 08/09/2010
- Re: [cgal-discuss] Hilbert Sort on a User Defined Point, Sylvain Pion, 08/09/2010
- [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Derek, 08/09/2010
- Re: [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Sylvain Pion, 08/09/2010
- [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Derek, 08/10/2010
- Re: [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Sylvain Pion, 08/10/2010
- Re: [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Andreas Fabri, 08/10/2010
- [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Derek, 08/10/2010
- Re: [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Sylvain Pion, 08/10/2010
- [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Derek, 08/10/2010
- Re: [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Sylvain Pion, 08/09/2010
- [cgal-discuss] Re: Hilbert Sort on a User Defined Point, Derek, 08/09/2010
- Re: [cgal-discuss] Hilbert Sort on a User Defined Point, Sylvain Pion, 08/09/2010
Archive powered by MHonArc 2.6.16.