Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] conversion to non-scalar type requested error.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] conversion to non-scalar type requested error.


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] conversion to non-scalar type requested error.
  • Date: Fri, 20 Nov 2009 00:05:03 +0100
  • Organization: GeometryFactory

Le jeudi 19 novembre 2009 20:32:34, Gilles a écrit :
> Hello,
>
> I inheritate from Polyhedron_3 this way :
>
> typedef CGAL::Simple_cartesian<double> Kernel;
> typedef CGAL::Polyhedron_3<Kernel> Polyhedron_3;
> typedef Polyhedron_3::HalfedgeDS HalfedgeDS;
> typedef HalfedgeDS::Vertex Vertex;
> typedef Vertex::Point Point_3;
>
>
> class AC_Nef_Polyhedron : public Polyhedron_3,public AC_Forme3D
> {...}
>
>
> ...and I try to get the facet iterator in a member fonction :
>
> void AC_Nef_Polyhedron::draw() const
> {
> // it does not work on 'this' ("conversion to non-scalar type
> requested") Facet_iterator monIterator=facets_begin();
>
>
> // IT WORKS
> AC_Nef_Polyhedron np (NULL,NULL);
> Facet_iterator t=np.facets_begin();
>
> // IT ALSO WORKS
> AC_Nef_Polyhedron* hj=new AC_Nef_Polyhedron(NULL,NULL);
> Facet_iterator o=hj->facets_begin();
> }
>
> Any clue ?

The only difference I see is that "this", in "void draw() const", is a
*const*
pointer. Is facets_begin() a *const* method?

--
Laurent Rineau, PhD
Release Manager of the CGAL Project
http://www.cgal.org/
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page