Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] LinearCellComplex error: no member 'point_of_vertex_attribute'

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] LinearCellComplex error: no member 'point_of_vertex_attribute'


Chronological Thread 
  • From: Guillaume Gay <>
  • To:
  • Subject: Re: [cgal-discuss] LinearCellComplex error: no member 'point_of_vertex_attribute'
  • Date: Wed, 08 Jul 2015 16:57:40 +0200

Hi Guillaume,

Appical_sheet_3 is only mentioned in the typedef

Here is the code for the function calling point_of_vertex_attributes:

void make_polygon(Appical_sheet_3 &sheet, std::vector<Point> &points) {
  std::size_t n_sides = points.size();
  Dart_handle dh = make_combinatorial_polygon(sheet, n_sides);
  Dart_handle prev = dh;
  Dart_handle next;
  for (std::vector<Point>::iterator it = points.begin(); it != points.end(); ++it){
    next = sheet.beta(prev, 1);
    Vertex_attribute_handle vh = sheet.create_vertex_attribute(*it);
    sheet.set_vertex_attribute(prev, vh);
    //int id = sheet.info<0>(vh);
    std::cout<<"Point: " <<sheet.point_of_vertex_attribute(vh)<<std::endl;
    prev = next;
  };
};

And the error message:

/home/guillaume/Python/tyssue/src/cpp-tyssue/objects.cc: In function  ‘void make_polygon(Appical_sheet_3&,  std::vector<CGAL::Point_3<CGAL::Simple_cartesian<double>  > >&)’:
 /home/guillaume/Python/tyssue/src/cpp-tyssue/objects.cc:50:34: error:  ‘Appical_sheet_3’ has no member named ‘point_of_vertex_attribute’
      std::cout<<"Point: " <<sheet.point_of_vertex_attribute(vh)<<std::endl;
                                   ^
Thx

Guillaume

Le 08/07/2015 16:51, Guillaume Damiand a écrit :
Hi,


Le 08/07/2015 16:43, Guillaume Gay a écrit :
Hi,

What am I doing wrong?

I define a LineraCellComplex like that:

typedef CGAL::Linear_cell_complex<2,3,Traits,Epithelium_Items>     Appical_sheet_3;

When trying to access one Appical_sheet_3 instance point attributes, I get the following error (also for other documented members of LCC)

‘Appical_sheet_3’ has no member named ‘point_of_vertex_attribute’

Without the code it is difficult to find the problem...

Appical_sheet_3 is a type or an instance ?
Because it is not clear above (this is the name in the typedef, but this is also the name in the error message which is supposed to concern an instance).

Best
Guillaume



Appart from that, I manage to build polygons and call member functions as create_vertex_attribute(*it)

hint: I'm new to C++, so something obvious might elude me…

Best,

Guillaume





-- 
===================================================================
Guillaume DAMIAND

CNRS - LIRIS UMR 5205
Université Claude Bernard
Bâtiment Nautibus (710)
43 Boulevard du 11 Novembre 1918
69622 Villeurbanne Cedex (France)
-------------------------------------------------------------------
Tél: +33 (0)4.72.43.14.34                 Fax: +33 (0)4.72.43.15.36
Mail: 
Web: http://liris.cnrs.fr/guillaume.damiand/
===================================================================

-- 

--
Guillaume Gay, PhD

http://damcb.com

43 rue Horace Bertin
13005 Marseille

+33 953 55 98 89
+33 651 95 94 00

n°SIRET 751 175 233 00020



Archive powered by MHonArc 2.6.18.

Top of Page