[LIBART] ART_USE_NEW_INTERSECTOR
- From: Robin Becker <robin jessikat fsnet co uk>
- To: libart gnome org
- Subject: [LIBART] ART_USE_NEW_INTERSECTOR
- Date: Sun, 21 Jul 2002 17:03:25 +0100
Is the new intersector ready for prime time. I have an example where
I seem to see a strange bleed from a simple path when
this is defined and which seems OK when not.
I'm using this kind of code
preTransSvp = art_svp_vpath_stroke(vpath, join, cap, line_width, miter_limit, flatness);
backVpath = art_vpath_from_svp(preTransSvp);
transVpath = art_vpath_affine_transform(backVpath, affine);
resultSvp = art_svp_from_vpath(transVpath);
and the final rendering is done with
art_rgb_svp_alpha
vpath:
0: MOVETO , (70,10)
1: LINETO , (70,30)
2: LINETO , (90,30)
3: LINETO , (90,10)
4: END , (0,0)
affine=0.70710678118654757 0.70710678118654746 -0.70710678118654746 0.70710678118654757 0 0 (det: 1)
flatness=0.5 miter_limit=4
In the old working case
resultSvp looks like
seg 0: n_points=3 dir=1
box=27.576369205827334 56.214025995848068 42.425536512884229 85.55992341527147
(42.073262202863916 56.214025995848068)
(27.576369205827334 70.710062704634979)
(42.425536512884229 85.55992341527147)
seg 1: n_points=3 dir=0
box=28.990409525204747 56.214025995848068 42.780238814425417 70.710724860599015
(42.073262202863916 56.214025995848068)
(42.780238814425417 56.922412720801397)
(28.990409525204747 70.710724860599015)
seg 2: n_points=2 dir=1
box=42.426514684098485 70.357472983600118 56.21421740907325 84.146512277854939
(56.21421740907325 70.357472983600118)
(42.426514684098485 84.146512277854939)
seg 3: n_points=3 dir=0
box=42.425536512884229 70.357472983600118 56.922244570649148 85.55992341527147
(56.21421740907325 70.357472983600118)
(56.922244570649148 71.064323266748971)
(42.425536512884229 85.55992341527147)
seg 4: n_points=2 dir=0
box=28.990409525204747 70.710724860599015 42.426514684098485 84.146512277854939
(28.990409525204747 70.710724860599015)
(42.426514684098485 84.146512277854939)
In the ART_USE_NEW_INTERSECTOR defined (non working case) I see
seg 0: n_points=3 dir=1
box=27.577164466275363 56.214989104330527 42.42640687119286 85.559920523572245
(42.072853480599584 56.214989104330527)
(27.577164466275363 70.710678118654755)
(42.42640687119286 85.559920523572245)
seg 1: n_points=2 dir=0 box=42.072853480599584 56.214989104330527 42.77996026178613 56.922095885517074
(42.072853480599584 56.214989104330527)
(42.77996026178613 56.922095885517074)
seg 2: n_points=3 dir=0
box=28.991378028648455 56.922095885517074 42.77996026178613 70.710678118654755
(42.77996026178613 56.922095885517074)
(28.991378028648455 70.710678118654755)
(28.991378028648455 70.710678118654755)
seg 3: n_points=2 dir=1
box=42.42640687119286 70.357124728061478 56.214989104330535 84.145706961199153
(56.214989104330535 70.357124728061478)
(42.42640687119286 84.145706961199153)
seg 4: n_points=3 dir=0
box=42.42640687119286 70.357124728061478 56.922095885517081 85.559920523572245
(56.214989104330535 70.357124728061478)
(56.922095885517081 71.064231509248017) (42.42640687119286 85.559920523572245)
seg 5: n_points=2 dir=0
box=42.42640687119286 84.145706961199153 42.42640687119286 84.145706961199153
(42.42640687119286 84.145706961199153)
(42.42640687119286 84.145706961199153
--
Robin Becker
[Date Prev][Date Next] [Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]