[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Fast bisecting BBox_Cubic_Check
From: |
Dmitry Timoshkov |
Subject: |
Re: [ft-devel] Fast bisecting BBox_Cubic_Check |
Date: |
Sun, 17 Feb 2013 12:57:02 +0800 |
Alexei Podtelezhnikov <address@hidden> wrote:
> > Looks good, thanks! How do you check that the new code produces
> > identical bboxes?
>
> I used src/tools/test_bbox.c. I had to add some hexadecimal output,
> because the original output was just identical. As you'll see below
> the results are not bit-identical. I wish I knew the true answer. One
> possibility is to add a third outline to test_bbox with known
> theoretical bbox.
>
> OLD CODE:
> address@hidden ft-test]$ ./bbox
> outline #1
> time = 0.13 cbox = [-37.88 535.32 455.89 786.22]
> cbox_hex = [FFDA1F9E 021750FF 01C7E381 0312387F]
> time = 3.14 bbox = [115.62 535.32 412.08 672.25]
> bbox_hex = [00739FDF 021750FF 019C14EE 02A04028]
...
> NEW CODE:
> address@hidden ft-test]$ ./bbox
> outline #1
> time = 0.13 cbox = [-37.88 535.32 455.89 786.22]
> cbox_hex = [FFDA1F9E 021750FF 01C7E381 0312387F]
> time = 7.34 bbox = [115.62 535.32 412.08 672.25]
> bbox_hex = [00739F5D 021750FF 019C143F 02A03FD5]
You may try to change precision from .2f to print more digits
after the point (probably just completely remove the limit).
--
Dmitry.
- [ft-devel] Fast bisecting BBox_Cubic_Check, Alexei Podtelezhnikov, 2013/02/12
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Alexei Podtelezhnikov, 2013/02/15
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Alexei Podtelezhnikov, 2013/02/23
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Werner LEMBERG, 2013/02/24
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Alexei Podtelezhnikov, 2013/02/24
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Werner LEMBERG, 2013/02/24
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Alexei Podtelezhnikov, 2013/02/25
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Werner LEMBERG, 2013/02/25
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Alexei Podtelezhnikov, 2013/02/26
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Werner LEMBERG, 2013/02/27
- Re: [ft-devel] Fast bisecting BBox_Cubic_Check, Alexei Podtelezhnikov, 2013/02/27