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: Thu, 09 Jul 2015 09:48:07 +0200

Hi,

passing to CGAL 4.6 fixed the issue.

Thanks,

Guillaume

Le 08/07/2015 17:59, Guillaume Gay a écrit :
Hi,

The linked library is libcgal10, and here is the corresponding package info;

Package: libcgal10
Priority: optional
Section: universe/libs
Installed-Size: 641
Maintainer: Ubuntu Developers <>
Original-Maintainer: Joachim Reichel <>
Architecture: amd64
Source: cgal
Version: 4.2-5ubuntu1

So I guess it's CGAL 4.2-5 - is this too old?


It still fails on my box with the same typedef (without the custom definitions)

I'll try to install a newer version.

Thanks,

Guillaume

Le 08/07/2015 17:06, Guillaume Damiand a écrit :
Your code compile for me. I used the following typedef

typedef CGAL::Linear_cell_complex<3> LCC_3;
typedef LCC_3::Dart_handle           Dart_handle;
typedef LCC_3::Point                 Point;
typedef LCC_3::FT                    FT;
typedef LCC_3::Vertex_attribute_handle Vertex_attribute_handle;


Thus the problem could come from an error in your typedef.
Which version of CGAL you use ?



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

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


-- 
===================================================================
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

-- 

--
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