Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Learning CGAL, where is source code?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Learning CGAL, where is source code?


Chronological Thread 
  • From: s_gandhi <>
  • To:
  • Subject: Re: [cgal-discuss] Learning CGAL, where is source code?
  • Date: Sun, 31 Jan 2016 22:41:24 -0800 (PST)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:Axjpsxeb6fZKfx/4h0A+fKJwlGMj4u6mDksu8pMizoh2WeGdxc6+Zx7h7PlgxGXEQZ/co6odzbGG7Oa4CCdavMjJmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbvipNuLMk4S2WT1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu2pN5g/GLdXBTBjP2Eu79DwrjHCSxGO7z0SSDY4iB1NVhPy4xj8Upfw+n/1v+xx2CjcJsT5RKpyVi+K4KJiSRuugyACYW1quFrLg9B92foI6CmqoAZyltbZ

s_gandhi wrote
> I am interested in CGAL's source code of few functions.
> Especially, I am not able to understand "how k.
> <function>
> _object() works?"
>
> For instance, lets consider example of a function
/
> collinear_are_ordered_along_line()
/
>
> I managed to dig it till:
> Definition at line 254 of file global_functions_2.h.
> 261 template < class K >
> 262 inline
> 263 typename K::Boolean
> 264 collinear_are_strictly_ordered_along_line(const Point_2
> <K>
> &p,
> 265 const Point_2
> <K>
> &q,
> 266 const Point_2
> <K>
> &r)
> 267 {
> 268 return
> internal::collinear_are_strictly_ordered_along_line(p, q, r, K());
> 269 }
> 270
>
> This part should be different, I made a mistake while copy-pasting.
> Pl find below:
> 251 template < class K >
> 252 inline
> 253 typename K::Boolean
> 254 collinear_are_ordered_along_line(const Point_2
> <K>
> &p,
> 255 const Point_2
> <K>
> &q,
> 256 const Point_2
> <K>
> &r)
> 257 {
> 258 return internal::collinear_are_ordered_along_line(p, q, r,
> K());
> 259 }
>
> Further, in global_functions_internal_2.h:253, I find the
> following:
> 250 template < class K >
> 251 inline
> 252 typename K::Boolean
> 253 collinear_are_ordered_along_line(const typename
> K::Point_2 &p,
> 254 const typename
> K::Point_2 &q,
> 255 const typename
> K::Point_2 &r,
> 256 const K& k)
> 257 {
> 258 return
> k.collinear_are_ordered_along_line_2_object()(p, q, r);
> 259 }
> Now, where is this function
> "collinear_are_ordered_along_line_2_object(...)" defined with respect to
> trait k?
>
> Why I want to understand it?
> 1. Unless I see it till the end, the comfort level does not really arise.
> 2. I am interested in researching few terminologies in CG. I am willing to
> contribute to CG community. So unless I understand how things are at
> present -
/
> in practical
/
> - it is difficult to even think of something else.
>
> I hope question is not vague and can be answered.
>
> Regards,
> S. Gandhi


s_gandhi wrote
> I am interested in CGAL's source code of few functions.
> Especially, I am not able to understand "how k.
> <function>
> _object() works?"
>
> For instance, lets consider example of a function
/
> collinear_are_ordered_along_line()
/
>
> I managed to dig it till:
> Definition at line 254 of file global_functions_2.h.
> 261 template < class K >
> 262 inline
> 263 typename K::Boolean
> 264 collinear_are_strictly_ordered_along_line(const Point_2
> <K>
> &p,
> 265 const Point_2
> <K>
> &q,
> 266 const Point_2
> <K>
> &r)
> 267 {
> 268 return
> internal::collinear_are_strictly_ordered_along_line(p, q, r, K());
> 269 }
> 270
>
> Further, in global_functions_internal_2.h:253, I find the
> following:
> 250 template < class K >
> 251 inline
> 252 typename K::Boolean
> 253 collinear_are_ordered_along_line(const typename
> K::Point_2 &p,
> 254 const typename
> K::Point_2 &q,
> 255 const typename
> K::Point_2 &r,
> 256 const K& k)
> 257 {
> 258 return
> k.collinear_are_ordered_along_line_2_object()(p, q, r);
> 259 }
> Now, where is this function
> "collinear_are_ordered_along_line_2_object(...)" defined with respect to
> trait k?
>
> Why I want to understand it?
> 1. Unless I see it till the end, the comfort level does not really arise.
> 2. I am interested in researching few terminologies in CG. I am willing to
> contribute to CG community. So unless I understand how things are at
> present -
/
> in practical
/
> - it is difficult to even think of something else.
>
> I hope question is not vague and can be answered.
>
> Regards,
> S. Gandhi





--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Learning-CGAL-where-is-source-code-tp4661547p4661548.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page