Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Some "Curve_2" constructors don't compile for me.
- Date: Wed, 2 Mar 2016 23:48:34 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:xDoG0B00pD+QCmbMsmDT+DRfVm0co7zxezQtwd8ZsegfKvad9pjvdHbS+e9qxAeQG96LtLQb0aGP7vqocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0ILojavrpsebSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/NGSrjwKqQkUaRDXnNhKHEw/MSttB/ZTALJ6GFbSXQTihMPAg7L61bxUZ719yf7reFgwzLJAcqjRr89XXGu7rxgVQTzoCYBLT8wtm/N2eJqi6cOjRyg7zJ4zIPQKNWYOvtweazQefsVQGNAWoBaUCkXUdD0VJcGE+dUZbUQlIL6vVZb9RY=
Hi Kevin,
First, why list only part of the program?
Secondly, if you list part, why not list only statements that cause the error?First, why list only part of the program?
Curve_2 c_5( center, 1.0, CGAL::CLOCKWISE, A, B );
Curve_2 c_6( F, startPoint, endPoint );
Curve_2 c_6( F, startPoint, endPoint );
The start and end point type should be Traits_2::Point_2 (ad not Kernel::Point_2).
for more information.
Efi
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
On Wed, Mar 2, 2016 at 9:52 PM, KHartmann <> wrote:
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.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Some "Curve_2" constructors don't compile for me., KHartmann, 03/02/2016
- Re: [cgal-discuss] Some "Curve_2" constructors don't compile for me., Efi Fogel, 03/02/2016
- Re: [cgal-discuss] Some "Curve_2" constructors don't compile for me., KHartmann, 03/03/2016
- Re: [cgal-discuss] Some "Curve_2" constructors don't compile for me., Efi Fogel, 03/02/2016
Archive powered by MHonArc 2.6.18.