Subject: CGAL users discussion list
List archive
- From: Mahmood Naderan <>
- To: CGAL discuss <>
- Subject: [cgal-discuss] Question about intersection(A,B)
- Date: Sun, 8 Jun 2008 01:56:06 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=F8hdpX2W5zkI6pmXewRfrGA6bwkDUCkRbqZad4HivDd8YbU8IsYm6QerM3DRh/3ru88jM/LkJmGnKlFEfN2BUDeNmJ60m8UH3B5pqYF+EYW6igD8Nx/NQGdTiqhjJ5nNdN9qn665tvws7/iKYC3J3iM7P0ijqoYshCV5EGWVRvE=;
Hello,
I have a problem with "intersection" function. This is my class:
I have a problem with "intersection" function. This is my class:
template <class Traits_, class AppKernel_>
class my_class
{
public:
class my_class
{
public:
typedef Traits_ Traits_2;
typedef AppKernel_ Approx_kernel;
typedef typename Approx_kernel::Point_2 App_point_2;
typedef typename Approx_kernel::Segment_2 App_segment_2;
...
}
typedef AppKernel_ Approx_kernel;
typedef typename Approx_kernel::Point_2 App_point_2;
typedef typename Approx_kernel::Segment_2 App_segment_2;
...
}
and I have these in one one of my functions (I have put somethings in segList and app_bound_segs list and they have no problem):
typename std::list<App_segment_2>::const_iterator sit1, sit2;
std::list< App_point_2 > interPoints;
std::list< App_segment_2 > app_bound_segs, segList;
interPoints.clear();
std::list< App_point_2 > interPoints;
std::list< App_segment_2 > app_bound_segs, segList;
interPoints.clear();
for ( sit1 = segList.begin(); sit1 != segList.end(); sit1++ )
for ( sit2 = app_bound_segs.begin(); sit2 != app_bound_segs.end(); sit2++ )
interPoints.push_back( CGAL::intersection( sit1, sit2 ) );
when I compile, it says:
error C2784: 'CGAL::Object CGAL::intersection(const CGAL::Triangle_2<R_> &,const CGAL::Iso_rectangle_2<R_> &)' : could not deduce template argument for 'const CGAL::Triangle_2<R_> &' from 'std::list<_Ty>::_Const_iterator<_Secure_validation>'
what does the error mean? I read in manual that
Object intersection( Type1<Kernel> obj1, Type2<Kernel> obj2);
Object intersection( Type1<Kernel> obj1, Type2<Kernel> obj2);
so what is the problem?
Thanks,
Thanks,
-------------------
Mahmood Naderan
Mahmood Naderan
- [cgal-discuss] Question about intersection(A,B), Mahmood Naderan, 06/08/2008
- Re: [cgal-discuss] Question about intersection(A,B), Laurent Rineau, 06/08/2008
- <Possible follow-up(s)>
- Re: [cgal-discuss] Question about intersection(A,B), Mahmood Naderan, 06/08/2008
- Re: [cgal-discuss] Question about intersection(A,B), Laurent Rineau, 06/08/2008
- Re: [cgal-discuss] Question about intersection(A,B), Mahmood Naderan, 06/08/2008
Archive powered by MHonArc 2.6.16.