Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Some "Curve_2" constructors don't compile for me.

Subject: CGAL users discussion list

List archive

[cgal-discuss] Some "Curve_2" constructors don't compile for me.


Chronological Thread 
  • From: KHartmann <>
  • To:
  • Subject: [cgal-discuss] Some "Curve_2" constructors don't compile for me.
  • Date: Wed, 2 Mar 2016 11:52:48 -0800 (PST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:4TnR8hJyTO8iVS3oRdmcpTZWNBhigK39O0sv0rFitYgUL/7xwZ3uMQTl6Ol3ixeRBMOAu60C1LCd6vu4EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35vxiLr5osaLKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FpwecbD/S/JvxwDecAVHV1e1wyscbkvB2GQQqU7WYHSU0XlABJCk7L9kLURJD05wjav/Bh3SCcO4WiTrA9Qyin5qFtYBbjjWEALTFvozKfsdB5kK8O+UHpnBd42YOBO9nNOQ==

Hi,

I'm trying to compile the following code in Visual Studio, but I get
compiler errors for the lines constructing "c_5" and "c_6". What I'm trying
to do is very similar to a code example in the documentation. Can anyone
tell me what I'm doing wrong? The error messages are below the code.

Thanks,
Kevin

----------------------------------------------

typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef Kernel::Point_2 Point_2;
typedef Kernel::Circle_2 Circle_2;
typedef CGAL::Gps_circle_segment_traits_2<Kernel> Traits_2;
typedef Traits_2::Curve_2 Curve_2;

Point_2 center( 0.0, 0.0 );
Point_2 A( -1.0, 0.0 );
Point_2 B( 0.0, 1.0 );
Point_2 C( 1.0, 0.0 );

Circle_2 F( center, 1.0, CGAL::CLOCKWISE );

Curve_2 c_1();
Curve_2 c_2( A, C );
Curve_2 c_3( A, B, C );
Curve_2 c_4( center, 1.0, CGAL::CLOCKWISE );
Curve_2 c_5( center, 1.0, CGAL::CLOCKWISE, A, B );
Curve_2 c_6( F, startPoint, endPoint );


///////////////Errors//////////////////////////

c_5 visual studio compiler error:

Error 14 error C2664:
'CGAL::_Circle_segment_2<Kernel_,Filter_>::_Circle_segment_2(const
CGAL::Point_2<R_> &,const CGAL::Lazy_exact_nt<ET_> &,CGAL::Orientation,const
CGAL::_One_root_point_2<NumberType_,true> &,const
CGAL::_One_root_point_2<NumberType_,true> &)' : cannot convert parameter 4
from 'Point_2' to 'const CGAL::_One_root_point_2<NumberType_,Filter_> &'


c_6 visual studio compiler error:

Error 15 error C2664:
'CGAL::_Circle_segment_2<Kernel_,Filter_>::_Circle_segment_2(const
CGAL::Line_2<R_> &,const CGAL::_One_root_point_2<NumberType_,true> &,const
CGAL::_One_root_point_2<NumberType_,true> &)' : cannot convert parameter 1
from 'Circle_2' to 'const CGAL::Line_2<R_> &'
D:\AnsysDev\Repos9\ui\targets\libgeom\BaseBoolean.cpp 1795




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Some-Curve-2-constructors-don-t-compile-for-me-tp4661665.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page