Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Dual edge of Apollonius Graph

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Dual edge of Apollonius Graph


Chronological Thread 
  • From: Narusaki <>
  • To:
  • Subject: Re: [cgal-discuss] Dual edge of Apollonius Graph
  • Date: Thu, 19 Feb 2015 03:08:42 -0800 (PST)

Sebastien Loriot (GeometryFactory) wrote
> On 02/19/2015 11:52 AM, Narusaki wrote:
>> Sebastien Loriot (GeometryFactory) wrote
>>> On 02/19/2015 11:18 AM, Narusaki wrote:
>>>> Hi Sebastien,
>>>>
>>>> Thank you for the reply. I've found the bug for the extra ray -- it's
>>>> because I thought the pleft/pright of the hyperbola mean the left/right
>>>> branch, but it turns out it means the left/right part of the branch
>>>> according to the axis.
>>>>
>>>> Now it only leaves me with the problem of the shape of the hyperbola. I
>>>> gradually multiply each site (x, y, z) by 10^0, 10^1, ..., etc. and the
>>>> hyperbola seems to be more and more smooth. I've checked the points
>>>> generated by the function you've mentioned, and it's indeed about 100
>>>> points
>>> Where are these points then?
>>>
>>> Sebastien.
>>>
>>>> (with an extra one) for whether there is a multiplier for each site or
>>>> not.
>>>> For example, the following two pics are corresponding to multiply the
>>>> sites
>>>> by 10^0 and 10^1 separately:
>>>>
>>>> &lt;http://cgal-discuss.949826.n4.nabble.com/file/n4660484/p1.png&gt;
>>>> &lt;http://cgal-discuss.949826.n4.nabble.com/file/n4660484/p2.png&gt;
>>>>
>>>> It seems that the first one is approximated by two line segment and the
>>>> the
>>>> second one is approximated by four. I've tried to use the kernel you
>>>> mentioned but that doesn't help, and as I've mentioned above, the
>>>> generated
>>>> points number seems to be no problem.
>>>>
>>>> So what the problem could be now?
>>>
>>> Well just on the line segments in the former pics, I guess. Since I'm
>>> rendering the hyperbola by each of its small line segments myself, I
>>> think
>>> this shouldn't be the problem.
>>>
>
> Could you add a cout in the point generation function to print the
> point into a file and post it here? I just want to check.
>
> Sebastien.
>
> Sure, the file is as below: there're 204 lines in the file, and the former
> 102 lines are pleft and 102 lines are pright. Thank you very much.
> pleft&pright.txt
> <http://cgal-discuss.949826.n4.nabble.com/file/n4660492/pleft%26pright.txt>
>
>
>>> And as I'm reading the Hyperbola_2.h file, I found there're two versions
>>> of generate_points() method, and in the one with the "_qt" suffix (which
>>> I
>>> think it may serve for the rendering in the qt GUI framework), I saw the
>>> STEP variable is set according to the size of the window, which is
>>> obviously skipped in the raw generate_points() method. Could this be the
>>> problem?
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://cgal-discuss.949826.n4.nabble.com/Dual-edge-of-Apollonius-Graph-tp4660456p4660484.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
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://cgal-discuss.949826.n4.nabble.com/Dual-edge-of-Apollonius-Graph-tp4660456p4660490.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





--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Dual-edge-of-Apollonius-Graph-tp4660456p4660492.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page