Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Gilles <>
  • To:
  • Subject: [cgal-discuss] conversion to non-scalar type requested error.
  • Date: Thu, 19 Nov 2009 20:32:34 +0100 (CET)

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 ?

Many thanks


Gilles



Archive powered by MHonArc 2.6.16.

Top of Page