Subject: CGAL users discussion list
List archive
- From: Sylvain Pion <>
- To:
- Subject: Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator
- Date: Tue, 24 Feb 2009 16:50:30 +0100
- Organization: INRIA
Tom Kazimiers wrote:
Sylvain Pion schrieb:
Tom Kazimiers wrote:Sylvain, thanks for your suggestions. CGAL makes a lot use of the
Sylvain Pion schrieb:Then I guess the answer is that you have to write wrappers.
Tom Kazimiers wrote:I am working currently on an university project in which I would like to
I have an interface which represents access to delaunay triangulation.It would be interesting to know the reason why you have such a
Part of this interface should be an iterator which allows me to go
through all the vertices of the triangulation. As an implementation of
this interface I built an adapter to CGAL which works pretty well -
except for the iterator.
From CGAL I can get an Finite_vertices_iterator but I need a
std::iterator (or a boost iterator) (part of the interface)
- now I wonder if there is any other way for this then writing a
wrapper
class?
requirement.
easyly switch between delaunay triangulation variants (like between CGAL
and an implementation of one of my professors). For this I wrote an
interface (lots of "virtual ... = 0;" functions) to write code only
against this interface (which is good habbit anyway I guess). This again
would it make easy to see the behaviour of different triangulations
without changing much code.
You can also go on the generic programming path using a concept,
and write adaptors for the 2 implementations.
concept/template approach, doesn't it?
Yes. You can even call it abuse, sometimes :)
You will find the basic principles in the design of the STL.
--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
- [cgal-discuss] Trouble cutting polyhedron using a plane., frederic.depourcq, 02/24/2009
- Re: [cgal-discuss] Trouble cutting polyhedron using a plane., Frederic De Pourcq, 02/24/2009
- [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator or boost iterator, Tom Kazimiers, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Sylvain Pion, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Tom Kazimiers, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Sylvain Pion, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Tom Kazimiers, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Sylvain Pion, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Tom Kazimiers, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Sylvain Pion, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Tom Kazimiers, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Tom Kazimiers, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Sylvain Pion, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Tom Kazimiers, 02/24/2009
- Re: [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator, Sylvain Pion, 02/24/2009
- [cgal-discuss] Accessing Finite_Vertex_Iterator as std::iterator or boost iterator, Tom Kazimiers, 02/24/2009
- Re: [cgal-discuss] Trouble cutting polyhedron using a plane., Frederic De Pourcq, 02/24/2009
Archive powered by MHonArc 2.6.16.