Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree
- Date: Tue, 27 Sep 2011 17:52:50 +0200
- Organization: GeometryFactory
You should use C3t3::Triangulation::Facet as Id type. The type Facet is
mutable.
On mardi 27 septembre 2011 17:28:23 Frankie Li wrote:
> //----------------------------------------------------
> template< class C3T3, class AABB_Kernel >
> class AABB_mesh_3_triangle_primitive
> {
> public:
> typedef typename C3T3::Triangulation Triangulation;
> /// AABBPrimitive types
> typedef AABB_Kernel GeomTraits;
> typedef typename GeomTraits::Point_3 Point;
> typedef typename GeomTraits::Triangle_3 Datum;
> typedef typename C3T3::Facet_iterator Id;
Here, replace with
typedef typename C3t3::Facet_iterator Facet_iterator;
typedef typename C3t3::Triangulation::Facet Id;
> AABB_mesh_3_triangle_primitive(Id handle)
>
> : m_facet_handle( handle )
Here replace with:
AABB_mesh_3_triangle_primitive(Facet_iterator fit)
: m_facet_handle( *fit )
And rename m_facet_handle to m_facet.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree, Frankie Li, 09/26/2011
- Re: [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree, Sebastien Loriot (GeometryFactory), 09/27/2011
- Re: [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree, Frankie Li, 09/27/2011
- Re: [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree, Laurent Rineau (GeometryFactory), 09/27/2011
- Re: [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree, Frankie Li, 09/27/2011
- Re: [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree, Sebastien Loriot (GeometryFactory), 09/27/2011
Archive powered by MHonArc 2.6.16.