Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Polyhedron vertex_descriptor
- Date: Wed, 26 Feb 2014 12:47:18 +0100
- Organization: GeometryFactory
I think you should read again the design ideas of the BGL.
If you want any BGL algorithm to work, you need to do something like:
namespace boost{
struct graph_traits<Surface>: public graph_traits<Polyhedron_3> {};
}
the same with halfedge_graph_traits if you need to.
Sebastien.
On 02/26/2014 12:04 PM, Zohar wrote:
So, back to the original problem. Is there a way to derive from
Polyhedron_3:
class Surface : public CGAL::Polyhedron_3<Kernel> {};
and still be able to supply Surface to the simplification algorithm (the
template instantiation for BGL is defined for Polyhedron_3 and doesn't
recognize Surface)?
I started with this:
struct Surface : public CGAL::Polyhedron_3<Kernel>, public
CGAL::HDS_graph_traits<CGAL::Polyhedron_3<Kernel> > {};
but now it needs halfedge_graph_traits and maybe other stuff.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Polyhedron-vertex-descriptor-tp4658859p4658863.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Polyhedron vertex_descriptor, Zohar, 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Sebastien Loriot (GeometryFactory), 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Zohar, 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Zohar, 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Sebastien Loriot (GeometryFactory), 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Zohar, 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Sebastien Loriot (GeometryFactory), 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Zohar, 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Zohar, 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Zohar, 02/26/2014
- Re: [cgal-discuss] Polyhedron vertex_descriptor, Sebastien Loriot (GeometryFactory), 02/26/2014
Archive powered by MHonArc 2.6.18.