Subject: CGAL users discussion list
List archive
- From: "Thomas Zangl - Home" <>
- To: <>
- Subject: [cgal-discuss] Ambigous reference to Weighted_Point during compilation
- Date: Tue, 1 Jul 2008 12:24:00 +0200
Hi!
I have an application, which uses the
Exact_predicated_exact_constructions kernel. I want to replace it with
an *_inexact_constructions kernel to run some speed tests (testing the
impact of the choice of kernel on the applications performance).
I use a regular_triangulation_3 which is defined as follows:
// Kernel
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::RT dbl; // this is used for representing floating point
values
// The types of the regular triangulation
typedef CGAL::Regular_triangulation_filtered_traits_3<K> RegtrTraits;
typedef CGAL::Triangulation_vertex_base_with_info_3<pOneBall, RegtrTraits>
VertexBase;
typedef CGAL::Triangulation_cell_base_with_info_3<pRCellProperty,K>
CellBase;
typedef CGAL::Triangulation_data_structure_3<VertexBase,CellBase>
TDataStructure;
typedef CGAL::Regular_triangulation_3<RegtrTraits,TDataStructure>
Regular_triangulation;
typedef Regular_triangulation::Weighted_point Weighted_point;
And now my compiler yields:
main.cpp: In function âvoid
regularTriangulation(std::vector<boost::shared_ptr<OneBall>,
std::allocator<boost::shared_ptr<OneBall> > >&)â:
main.cpp:143: error: reference to âWeighted_pointâ is ambiguous
common.h:77: error: candidates are: typedef class
CGAL::Weighted_point<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >, double> Weighted_point
/CGAL-3.3.1/include/CGAL/Weighted_point.h:27: error:
template<class Pt, class We> class CGAL main.cpp:143: error: reference
to âWeighted_pointâ is ambiguous common.h:77: error: candidates are:
typedef class
CGAL::Weighted_point<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_ca
rtesian<double> > >, double> Weighted_point
/CGAL-3.3.1/include/CGAL/Weighted_point.h:27: error:
template<class Pt, class We> class CGAL::Weighted_point main.cpp:143:
error: expected `;' before âwpâ main.cpp:144: error: âwpâ was not
declare
Line 77 is:
typedef Regular_triangulation::Weighted_point Weighted_point;
main.cpp line 143 is:
Weighted_point wp((*it)->getCenter(),(*it)->getWeight());
(*it)->getCenter() : returns a Point_3<K>
(*it)->getWeight() : returns a value of type "dbl" (see above)
Any ideas whats wrong? Thank you!
Best regards,
--
,yours Thomas Zangl, Bakk.rer.soc.oec. -
-
- Freelancer - IT Consulting & Software Development -
- Student of Software Development-Economy (Master) -
- http://blog.tzis.net -
- [cgal-discuss] Ambigous reference to Weighted_Point during compilation, Thomas Zangl - Home, 07/01/2008
- Re: [cgal-discuss] Ambigous reference to Weighted_Point during compilation, Monique . Teillaud, 07/01/2008
- Re: [cgal-discuss] Ambigous reference to Weighted_Point during compilation, Laurent Rineau, 07/01/2008
- Re:[cgal-discuss] Ambigous reference to Weighted_Point during compilation, Thomas Zangl - Home, 07/01/2008
- Re: [cgal-discuss] Ambigous reference to Weighted_Point during compilation, Laurent Rineau, 07/02/2008
- Re:[cgal-discuss] Ambigous reference to Weighted_Point during compilation, Thomas Zangl - Home, 07/01/2008
Archive powered by MHonArc 2.6.16.