Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] To Fernando: my code and errors for SVD

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] To Fernando: my code and errors for SVD


Chronological Thread 
  • From: Khuong Vu <>
  • To: <>
  • Subject: Re: [cgal-discuss] To Fernando: my code and errors for SVD
  • Date: Tue, 17 Mar 2009 12:01:08 -0500

Hi Fernando and Manuel,

Thanks for your help. I think I found the wrong thing of my code.

Khuong

----- Original Message ----- From: "Vu, Khuong" <>
To:
<>
Cc:
<>
Sent: Monday, March 16, 2009 2:46 PM
Subject: [cgal-discuss] To Fernando: my code and errors for SVD


Hi Fernando,

Below are my code (I modified a bit) and the errors. I just post the part that I think important. I guess the TAGs I used were not valid for segment VD. I truly appreciate your help!!!

Khuong

============================================
#include <CGAL/basic.h>

// standard includes
#include <iostream>
#include <fstream>
#include <cassert>

// define the exact number type
# include <CGAL/Quotient.h>
# include <CGAL/MP_Float.h>
typedef CGAL::Quotient<CGAL::MP_Float> ENT;

// define the kernels
#include <CGAL/Simple_cartesian.h>

typedef CGAL::Simple_cartesian<double> CK;
typedef CGAL::Simple_cartesian<ENT> EK;

// typedefs for the traits and the algorithm
#include <CGAL/Segment_Delaunay_graph_filtered_traits_2.h>
#include <CGAL/Segment_Delaunay_graph_2.h>
#include <CGAL/Voronoi_diagram_2.h>
#include <CGAL/Segment_Delaunay_graph_adaptation_traits_2.h>
#include <CGAL/Segment_Delaunay_graph_filtered_traits_2.h>
#include <CGAL/Segment_Delaunay_graph_traits_2.h>
#include <CGAL/Segment_Delaunay_graph_adaptation_policies_2.h>

typedef CGAL::Segment_Delaunay_graph_filtered_traits_2<CK,
/* The construction kernel allows for / and sqrt */ CGAL::Field_with_sqrt_tag,
EK,
/* The exact kernel supports field ops exactly */ CGAL::Field_tag> Gt;
typedef CGAL::Segment_Delaunay_graph_2<Gt> SDG2;
typedef CGAL::Segment_Delaunay_graph_degeneracy_removal_policy_2<SDG2> AP;
typedef CGAL::Segment_Delaunay_graph_adaptation_traits_2<SDG2> AT;
typedef CGAL::Voronoi_diagram_2<SDG2, AP, AT> VD;

typedef AT::Site_2 Site_2;

using namespace std;

int main() {
ifstream ifs("data/sitesx.cin");
assert( ifs );

Site_2 site;
VD vd;

while ( ifs >> site ) { vd.insert( site ); }

ifs.close();

assert( vd.is_valid() );
cout << endl << endl;

return 0;
}

my-finding-vertices.cpp:53: instantiated from here
/usr/include/CGAL/Voronoi_diagram_2/Iterator_adaptors.h:182: error: ‘const class CGAL::Vd2<CGAL::Sdg2<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > >, CGAL::Segment_Delaunay_graph_storage_traits_2<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > > >, CGAL::Tds2<CGAL::Sdgvb2<CGAL::Segment_Delaunay_graph_storage_traits_2<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > > >, CGAL::Tdsvb<void> >, CGAL::Tfb<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > >, CGAL::Tdsfb<void> > >, CGAL::Boolean_tag<false> >, CGAL::Segment_Delaunay_graph_degeneracy_removal_policy_2<CGAL::Sdg2<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > >, CGAL::Segment_Delaunay_graph_storage_traits_2<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > > >, CGAL::Tds2<CGAL::Sdgvb2<CGAL::Segment_Delaunay_graph_storage_traits_2<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > > >, CGAL::Tdsvb<void> >, CGAL::Tfb<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > >, CGAL::Tdsfb<void> > >, CGAL::Boolean_tag<false> > >, CGAL::Sdgat2<CGAL::Sdg2<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > >, CGAL::Segment_Delaunay_graph_storage_traits_2<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > > >, CGAL::Tds2<CGAL::Sdgvb2<CGAL::Segment_Delaunay_graph_storage_traits_2<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > > >, CGAL::Tdsvb<void> >, CGAL::Tfb<CGAL::Sdgft2<CGAL::Simple_cartesian<double>, CGAL::Field_with_sqrt_tag, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::Field_tag, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::Field_with_sqrt_tag, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Quotient<CGAL::MP_Float> >, CGAL::NT_converter<double, CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Cartesian_converter<CGAL::Simple_cartesian<double>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::To_interval<double> > >, CGAL::Tdsfb<void> > >, CGAL::Boolean_tag<false> > > >’ has no member named ‘face_rejector’
make: *** [my-finding-vertices] Error 1
khuong@khuong-laptop:~/MyWork/kSVD$

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss



Archive powered by MHonArc 2.6.16.

Top of Page