Subject: CGAL users discussion list
List archive
- From: s_gandhi <>
- To:
- Subject: [cgal-discuss] Learning CGAL, where is source code?
- Date: Sun, 31 Jan 2016 22:31:45 -0800 (PST)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
- Ironport-phdr: 9a23:56Beox3a8yocMxp1smDT+DRfVm0co7zxezQtwd8ZsegTI/ad9pjvdHbS+e9qxAeQG96LtLQc2qGM7v6ocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0ILvhqvopsObSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6LoX3pUeAOCjJ+x4FuQATWduD2dg78LisVzPTBCE+2AHemQQiBtBRQbfvz/gWZKkqRz1v+xx2CjSacL/S7w0WHK55qhiUlnnkw8IMjc49Cfcjckm3/ETmw6ouxEqmt2cW4qSLvcrJfuFcA==
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-tp4661547.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [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.