Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Error with natural_neighbor_coordinates_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] Error with natural_neighbor_coordinates_2


Chronological Thread 
  • From: "David Reis" <>
  • To:
  • Subject: [cgal-discuss] Error with natural_neighbor_coordinates_2
  • Date: Thu, 27 Nov 2008 23:10:24 -0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=GV5hJj4pwOiQbIzw1aTu8LAVr5zbAuFhoLyAA45XMEfOjnK+4h6UjCm2eNgzRVvhLe rcqCCPrGpB7WavoDnpE/YD5EDIRIMn0CYF6BOwVz8W001brDjpegu3HEWBoxIlOz8T3G K5eMHo+a2SPcrfiOgogmQV709KUH+NCHVtuJA=

Hello folks,

I´m using the natural_neighbor_coordinates_2 function as:

----------------------------------
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef CGAL::Delaunay_triangulation_2<Kernel>  Delaunay_triangulation;
typedef Kernel::Point_2 Point;
typedef Kernel::FT Number;
typedef std::pair< Point, Number > Point_coordinate;
typedef boost::numeric::ublas::matrix<Point_coordinate> Point_coordinate_matrix;

Point_coordinate_matrix shape_functions(support_domain_size,support_domain_size);

Point_coordinate_matrix::iterator1 it_row = shape_functions.begin1();
CGAL::Triple <Point_coordinate_matrix::iterator1,Number, bool>
   result = CGAL::natural_neighbor_coordinates_2(support_domain_dt, test_number, it_row);
----------------------------------

The objective here is to put the natural neigbhor coordinates at the current row in the boost matrix.

The VC++ 9.0 compiler generates this error:
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::pair<_Ty1,_Ty2>' (or there is no acceptable conversion)    c:\arquivos de programas\cgal-3.3.1\include\cgal\natural_neighbor_coordinates_2.h    62

Isn´ the matrix row operator a valid output operator?

Thanks,

David Reis
Cel: (31) 9608-8138
Tel: (31) 2526-2091



Archive powered by MHonArc 2.6.16.

Top of Page