Open chgans opened 7 years ago
Efi, Andreas, would you mind having a look at this bug report? It was created by a CGAL user a few weeks ago.
There are two parts
Minkowski_sum_by_reduced_convolution_2::get_point(...)
MyConstruct_coord_iterator
In the code of the get_point() member function we have:
... Point_2(ORIGIN) ...
I don't understand the problem. I guess that using a custom point, also implies that ORIGIN must be defined. Is this a problem? Perhaps it only should be documented.
I think that we should add the missing type definition.
//) o /__ // (__ ( ( ( (/ (/-(-'(/ /
On 19 May 2017 at 12:20, Laurent Rineau notifications@github.com wrote:
Efi, Andreas, would you mind having a look at this bug report? It was created by a CGAL user a few weeks ago.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/CGAL/cgal/issues/2010#issuecomment-302653416, or mute the thread https://github.com/notifications/unsubscribe-auth/AGoWuPVmRXXA48Rx8q3CZUFXDgfzfI_kks5r7V7tgaJpZM4MwrCy .
Hi,
Sorry i'm not actively using cgal anymore for now.
AFAIR, the point of this ticket was simply that you cannot use the "Extensive Example" code with the Minkowski code.
I wouldn't have open this ticket if one of the following were true:
Chris
Don't get me wrong. I'm sure there is a problem, and we thank you for reporting it. I hope you get to actively use CGAL soon again...
//) o /__ // (__ ( ( ( (/ (/-(-'(/ /
On 22 May 2017 at 16:16, Christian Gagneraud notifications@github.com wrote:
Hi,
Sorry i'm not actively using cgal anymore for now.
AFAIR, the point of this ticket was simply that you cannot use the "Extensive Example" code with the Minkowski code.
I wouldn't have open this ticket if one of the following were true:
- The documentation didn't say "You dont need a CGAL::Origin ctor"
- Minkowski didn't use "Point_2(Origin)"
Chris
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/CGAL/cgal/issues/2010#issuecomment-303096746, or mute the thread https://github.com/notifications/unsubscribe-auth/AGoWuJ2Cw0DOVTMKTOA6FfZC2-qSyLBAks5r8YqTgaJpZM4MwrCy .
No problem! ;)
Hi, I was looking into the issue and found that the following issues are to be addressed:-
Am I right?
Issue Details
In it's section "Extensive Example", the Linear Kernel documentation claims that one doesn't need a custom point with a CGAL::Origin ctor, this is not true, at least when using minkowski sum as
Point_2 Minkowski_sum_by_reduced_convolution_2::get_point(...)
calls directlyPoint_2(Origin)
Which means that when using minkowski, you cannot use your custom Point class without explicitely depending on CGAL headers.
Not sure if the documentation needs an update or if minkowski sum needs a fix, or if actually there is no point in trying to use your own Point class with polygons?
2. Fixing the above isn't enough to use minkowski with the 'Extensive Example' code, one has to fix
MyConstruct_coord_iterator
. eg. from:to
result_type
was missing, and the operators were not const-correct.Source Code
I took the files from
Kernel_23/examples/Kernel_23/
, and started to poke around with polygons and minkowski sums, didn't modify anything else than the above changes toMyConstruct_coord_iterator
.Environment
KUbuntu 64 bits, defaults packages.