← Back to team overview

kicad-developers team mailing list archive

Re: Arc bounding box

 

Hi Orson,

This is just a guess / speculation, maybe you want check is there are any intersection tests that are using that center, or in other words, that intersect tests expect that the bbox intersect also the centre so the intersection algorithm will work? ..

Any way, by definition a bbox store the min and max point coord of a shape.

Mario
________________________________________
From: Kicad-developers [kicad-developers-bounces+mrluzeiro=ua.pt@xxxxxxxxxxxxxxxxxxx] on behalf of Maciej Sumiński [maciej.suminski@xxxxxxx]
Sent: 02 September 2015 21:38
To: Marcos Chaparro; KiCad Developers
Subject: Re: [Kicad-developers] Arc bounding box

True, I would like to remove the center point due to the same reason. I
am just not sure if there is other code relying on the current
behaviour, or if it was intentional.

Regards,
Orson

On 09/02/2015 08:43 PM, Marcos Chaparro wrote:
> IMHO, when it comes to select an arc shape I'd prefer to don't have to
> include the center. Some pcb outlines have slight curves with large radious
> and in order to include the arc in the selection I have to select a huge
> area that includes that arc center. The center could be a meter away from
> the actual arc, so it gets unpractical.
>
> Marcos
>
> On Wed, Sep 2, 2015 at 2:05 PM, LordBlick <lordblick@xxxxxxxxx> wrote:
>
>> In response to a message written on 02.09.2015, 18:54, from Maciej
>> Sumiński:
>>
>>> On 09/02/2015 06:47 PM, LordBlick wrote:
>>>
>>>> In response to a message written on 02.09.2015, 18:40, from Maciej
>>>>
>>> My bad, I meant 180° as the upper limit for considering the center point
>>> - thank you for the correction. Just to be clear: I am speaking about
>>> angle created by the origin, center and the end of an arc.
>>>
>> That is not so much difference, usually canvases takes start/end angle as
>> functions arg.
>> https://www.opengl.org/sdk/docs/man2/xhtml/gluPartialDisk.xml
>> http://cairographics.org/manual/cairo-Paths.html#cairo-arc
>>
>>
>> --
>> Best Regards,
>> LordBlick
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>


References