Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Learning CGAL, where is source code?
- Date: Mon, 1 Feb 2016 11:20:45 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:fHc5Ohew/zXvZ+7KXnn1/551lGMj4u6mDksu8pMizoh2WeGdxc6/Yh7h7PlgxGXEQZ/co6odzbGG7Oa4CCdasc7JmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbvipNuLMk4S1GL1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu2pN5g/GLdXBTBjP2Eu79DwrjHCSxGO7z0SSDY4iB1NViHD4Av3V4y5nCLwrOs1jCCcMdf7RKtyVz2o9aZDRxLvjSobLS83+WrLjdZhyqlcpUTy9FRE34fIbdTNZ7JFdaTHcIZCSA==
- Organization: GeometryFactory
One way to find out where the implementation details are
is stepping though it in a debugger.
best,
andreas
On 01/02/2016 10:46, s_gandhi wrote:
Hello Marc,
Thank you for the reply.
I am still not able to figure out "where is the definition?"
This might be very naive question. This is first time I am working with
proper templated code. So having all sorts of trouble in finding the
definitions.
Can you guide me through one function call?
In case of /collinear_are_ordered_along_line_2/,
where would be the implementation? I had a look at
/CGAL/Kernel/interface_macros.h/. It simply defines it as a predicate. Now,
in my case, I am using /Exact_predicates_inexact_constructions_kernel.h/,
which in turn includes /Simple_cartecian.h/. /Simple_cartecian.h/ has
defined the macro. But this does not seem to end.
Where is definition? I mean, at some point one has to do something like:
bool collinear(Point_2& p1, Point_2& p2, Point_2& p3)
{
return ((
(p2.x()-p1.x())*(p3.y()-p2.y())-(p3.x()-p2.x())*(p2.y()-p1.y()) )
== 0);
}
in case of collinear() function returning true or false.
If you think this is a 'common sense' question, please guide me to
respective book/tutorial/man-page.
I appreciate your time investment.
Regards,
S. Gandhi
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Learning-CGAL-where-is-source-code-tp4661547p4661550.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
- [cgal-discuss] Learning CGAL, where is source code?, s_gandhi, 02/01/2016
- Re: [cgal-discuss] Learning CGAL, where is source code?, s_gandhi, 02/01/2016
- Re: [cgal-discuss] Learning CGAL, where is source code?, Marc Glisse, 02/01/2016
- Re: [cgal-discuss] Learning CGAL, where is source code?, s_gandhi, 02/01/2016
- Re: [cgal-discuss] Learning CGAL, where is source code?, Marc Glisse, 02/01/2016
- Re: [cgal-discuss] Learning CGAL, where is source code?, Andreas Fabri, 02/01/2016
- Re: [cgal-discuss] Learning CGAL, where is source code?, s_gandhi, 02/01/2016
- Re: [cgal-discuss] Learning CGAL, where is source code?, Marc Glisse, 02/01/2016
- Re: [cgal-discuss] Learning CGAL, where is source code?, s_gandhi, 02/01/2016
Archive powered by MHonArc 2.6.18.