Subject: CGAL users discussion list
List archive
Triangulation_vertex_base_with_info_3 and Regular_triangulation_3 gives compile error on T.insert()
Chronological Thread
- From: "Thomas Zangl - Home" <>
- To: <>
- Subject: Triangulation_vertex_base_with_info_3 and Regular_triangulation_3 gives compile error on T.insert()
- Date: Tue, 10 Jul 2007 18:37:07 +0200
Hi!
My typdefs look like this:
typedef CGAL::Exact_predicates_exact_constructions_kernel K;
typedef CGAL::Triangulation_vertex_base_with_info_3<CGAL::Color, K> Vb;
typedef CGAL::Triangulation_data_structure_3<Vb> Tds;
typedef CGAL::Regular_triangulation_filtered_traits_3<K>
Regular_TriangulationTraits;
typedef CGAL::Regular_triangulation_3<Regular_TriangulationTraits, Tds>
Regular_triangulation;
typedef Regular_triangulation::Weighted_point Rt_Weighted_point;
Quite simple, I want to attach a color info() to each vertex of the
triangulation.
I then insert points like this in the triangulation:
// p is some Point with some coordinates, read from a file
Rt_Weighted_point newPoint(p, radius*radius);
t.insert(newPoint);
This code leads to this compile error:
/home/TZi/CGAL-3.3/include/CGAL/Triangulation_3.h: In member function
`typename CGAL::TR3<GT, Tds>::Cell_handle CGAL::TR3<GT, Tds>::locate(const
typename GT::Point_3&, CGAL::TR3<GT, Tds>::Locate_type&, int&, int&, typename
Tds::Cell_handle) const [with GT = Regular_TriangulationTraits, Tds = Tds]':
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:1245:
instantiated from `typename CGAL::RT3<Gt, Tds>::Vertex_handle CGAL::RT3<Gt,
Tds>::insert(const typename Gt::Weighted_point_3&, typename CGAL::TR3<GT,
Tds>::Cell_handle) [with Gt = Regular_TriangulationTraits, Tds = Tds]'
src/MedialAxis_3.cpp:72: instantiated from here
/home/TZi/CGAL-3.3/include/CGAL/Triangulation_3.h:1500: error: invalid
conversion from
`CGAL::Point_3<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::To_interval<CGAL::Quotient<CGAL::MP_Float> > > > >*' to `const
CGAL::Weighted_point<CGAL::Point_3<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::To_interval<CGAL::Quotient<CGAL::MP_Float> > > > >,
CGAL::Lazy_exact_nt<CGAL::Quotient<CGAL::MP_Float> > >*'
/home/TZi/CGAL-3.3/include/CGAL/Triangulation_3.h:1500: error: invalid
conversion from
`CGAL::Point_3<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::To_interval<CGAL::Quotient<CGAL::MP_Float> > > > >*' to `const
CGAL::Weighted_point<CGAL::Point_3<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::To_interval<CGAL::Quotient<CGAL::MP_Float> > > > >,
CGAL::Lazy_exact_nt<CGAL::Quotient<CGAL::MP_Float> > >*'
/home/TZi/CGAL-3.3/include/CGAL/Triangulation_3.h:1500: error: invalid
conversion from
`CGAL::Point_3<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::To_interval<CGAL::Quotient<CGAL::MP_Float> > > > >*' to `const
CGAL::Weighted_point<CGAL::Point_3<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::To_interval<CGAL::Quotient<CGAL::MP_Float> > > > >,
CGAL::Lazy_exact_nt<CGAL::Quotient<CGAL::MP_Float> > >*'
/home/TZi/CGAL-3.3/include/CGAL/Triangulation_3.h:1500: error: invalid
conversion from
`CGAL::Point_3<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::To_interval<CGAL::Quotient<CGAL::MP_Float> > > > >*' to `const
CGAL::Weighted_point<CGAL::Point_3<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float>
>, CGAL::Simple_cartesian<CGAL::Interval_nt_advanced>,
CGAL::To_interval<CGAL::Quotient<CGAL::MP_Float> > > > >,
CGAL::Lazy_exact_nt<CGAL::Quotient<CGAL::MP_Float> > >*'
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h: In member function
`void CGAL::RT3<Gt, Tds>::Hidden_point_visitor::hide_point(typename
CGAL::TR3<GT, Tds>::Cell_handle, const typename Gt::Weighted_point_3&) [with
Gt = Regular_TriangulationTraits, Tds = Tds]':
/home/TZi/CGAL-3.3/include/CGAL/Triangulation_3.h:2386: instantiated from
`typename CGAL::TR3<GT, Tds>::Vertex_handle CGAL::TR3<GT,
Tds>::insert_in_conflict(const typename GT::Point_3&, CGAL::TR3<GT,
Tds>::Locate_type, typename Tds::Cell_handle, int, int, const
Conflict_tester&, Hidden_points_visitor&) [with Conflict_tester =
CGAL::RT3<Regular_TriangulationTraits, Tds>::Conflict_tester_3,
Hidden_points_visitor = CGAL::RT3<Regular_TriangulationTraits,
Tds>::Hidden_point_visitor, GT = Regular_TriangulationTraits, Tds = Tds]'
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:1258:
instantiated from `typename CGAL::RT3<Gt, Tds>::Vertex_handle CGAL::RT3<Gt,
Tds>::insert(const typename Gt::Weighted_point_3&, typename CGAL::TR3<GT,
Tds>::Locate_type, typename CGAL::TR3<GT, Tds>::Cell_handle, int, int) [with
Gt = Regular_TriangulationTraits, Tds = Tds]'
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:1246:
instantiated from `typename CGAL::RT3<Gt, Tds>::Vertex_handle CGAL::RT3<Gt,
Tds>::insert(const typename Gt::Weighted_point_3&, typename CGAL::TR3<GT,
Tds>::Cell_handle) [with Gt = Regular_TriangulationTraits, Tds = Tds]'
src/MedialAxis_3.cpp:72: instantiated from here
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:747: error: 'class
CGAL::TDS_cb3<CGAL::TDS3<Vb, CGAL::TDS_cb3<void> > >' has no member named
'hide_point'
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h: In member function
`void CGAL::RT3<Gt,
Tds>::Hidden_point_visitor::process_cells_in_conflict(InputIterator,
InputIterator) const [with InputIterator =
__gnu_cxx::__normal_iterator<CGAL::CGALi::CC_iterator<CGAL::Compact_container<CGAL::TDS_cb3<CGAL::TDS3<Vb,
CGAL::TDS_cb3<void> > >, CGAL::Default_allocator>, false>*,
std::vector<CGAL::CGALi::CC_iterator<CGAL::Compact_container<CGAL::TDS_cb3<CGAL::TDS3<Vb,
CGAL::TDS_cb3<void> > >, CGAL::Default_allocator>, false>,
std::allocator<CGAL::CGALi::CC_iterator<CGAL::Compact_container<CGAL::TDS_cb3<CGAL::TDS3<Vb,
CGAL::TDS_cb3<void> > >, CGAL::Default_allocator>, false> > > >, Gt =
Regular_TriangulationTraits, Tds = Tds]':
/home/TZi/CGAL-3.3/include/CGAL/Triangulation_3.h:2403: instantiated from
`typename CGAL::TR3<GT, Tds>::Vertex_handle CGAL::TR3<GT,
Tds>::insert_in_conflict(const typename GT::Point_3&, CGAL::TR3<GT,
Tds>::Locate_type, typename Tds::Cell_handle, int, int, const
Conflict_tester&, Hidden_points_visitor&) [with Conflict_tester =
CGAL::RT3<Regular_TriangulationTraits, Tds>::Conflict_tester_3,
Hidden_points_visitor = CGAL::RT3<Regular_TriangulationTraits,
Tds>::Hidden_point_visitor, GT = Regular_TriangulationTraits, Tds = Tds]'
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:1258:
instantiated from `typename CGAL::RT3<Gt, Tds>::Vertex_handle CGAL::RT3<Gt,
Tds>::insert(const typename Gt::Weighted_point_3&, typename CGAL::TR3<GT,
Tds>::Locate_type, typename CGAL::TR3<GT, Tds>::Cell_handle, int, int) [with
Gt = Regular_TriangulationTraits, Tds = Tds]'
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:1246:
instantiated from `typename CGAL::RT3<Gt, Tds>::Vertex_handle CGAL::RT3<Gt,
Tds>::insert(const typename Gt::Weighted_point_3&, typename CGAL::TR3<GT,
Tds>::Cell_handle) [with Gt = Regular_TriangulationTraits, Tds = Tds]'
src/MedialAxis_3.cpp:72: instantiated from here
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:708: error: 'class
CGAL::TDS_cb3<CGAL::TDS3<Vb, CGAL::TDS_cb3<void> > >' has no member named
'hidden_points_begin'
/home/TZi/CGAL-3.3/include/CGAL/Triangulation_3.h:2403: instantiated from
`typename CGAL::TR3<GT, Tds>::Vertex_handle CGAL::TR3<GT,
Tds>::insert_in_conflict(const typename GT::Point_3&, CGAL::TR3<GT,
Tds>::Locate_type, typename Tds::Cell_handle, int, int, const
Conflict_tester&, Hidden_points_visitor&) [with Conflict_tester =
CGAL::RT3<Regular_TriangulationTraits, Tds>::Conflict_tester_3,
Hidden_points_visitor = CGAL::RT3<Regular_TriangulationTraits,
Tds>::Hidden_point_visitor, GT = Regular_TriangulationTraits, Tds = Tds]'
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:1258:
instantiated from `typename CGAL::RT3<Gt, Tds>::Vertex_handle CGAL::RT3<Gt,
Tds>::insert(const typename Gt::Weighted_point_3&, typename CGAL::TR3<GT,
Tds>::Locate_type, typename CGAL::TR3<GT, Tds>::Cell_handle, int, int) [with
Gt = Regular_TriangulationTraits, Tds = Tds]'
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:1246:
instantiated from `typename CGAL::RT3<Gt, Tds>::Vertex_handle CGAL::RT3<Gt,
Tds>::insert(const typename Gt::Weighted_point_3&, typename CGAL::TR3<GT,
Tds>::Cell_handle) [with Gt = Regular_TriangulationTraits, Tds = Tds]'
src/MedialAxis_3.cpp:72: instantiated from here
/home/TZi/CGAL-3.3/include/CGAL/Regular_triangulation_3.h:708: error: 'class
CGAL::TDS_cb3<CGAL::TDS3<Vb, CGAL::TDS_cb3<void> > >' has no member named
'hidden_points_end'
make: *** [src/MedialAxis_3.o] Error 1
I took the Triangulation_vertex_base_with_info_3 stuff from the
"color.cpp" demo. The manual does not say anything specific about
regular triangulations, so is there something to change if I want
to use it with the regular triangulation instead with a delaunay
triangulation?
PS: It works if I leave out the tds argument from:
typedef CGAL::Regular_triangulation_3<Regular_TriangulationTraits, Tds>
Regular_triangulation;
Thanks!
Best regards,
--
----------------------------------------------------------------
,yours Thomas Zangl, Bakk.rer.soc.oec. -
-
- Freelancer - IT Consulting & Software Development -
- Student of Software Development-Economy (Master) -
- Triangulation_vertex_base_with_info_3 and Regular_triangulation_3 gives compile error on T.insert(), Thomas Zangl - Home, 07/10/2007
- Re: [cgal-discuss] Triangulation_vertex_base_with_info_3 and Regular_triangulation_3 gives compile error on T.insert(), Laurent Rineau, 07/10/2007
- Re:[cgal-discuss] Triangulation_vertex_base_with_info_3 and Regular_triangulation_3 gives compile error on T.insert(), Thomas Zangl - Home, 07/10/2007
- Re: [cgal-discuss] Triangulation_vertex_base_with_info_3 and Regular_triangulation_3 gives compile error on T.insert(), Laurent Rineau, 07/10/2007
Archive powered by MHonArc 2.6.16.