[gtk/wip/matthiasc/lottie-stroke: 10/10] wip: some subdivision
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/lottie-stroke: 10/10] wip: some subdivision
- Date: Mon, 30 Nov 2020 19:02:24 +0000 (UTC)
commit c5d5de0ed905d7266dfe41ad1045597e2c326e12
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 30 01:27:03 2020 -0500
wip: some subdivision
Stop the subdivision at the extrema, and just
split non-simple segments once. Results are
better.
gsk/gskpathstroke.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gsk/gskpathstroke.c b/gsk/gskpathstroke.c
index db94b1ed9b..21c71c3dbb 100644
--- a/gsk/gskpathstroke.c
+++ b/gsk/gskpathstroke.c
@@ -922,6 +922,7 @@ subdivide_and_add (const graphene_point_t pts[4],
pass1 = NULL;
+#if 0
t0 = 0.1;
t1 = 0.9;
for (i = 0; i < n; i++)
@@ -949,6 +950,7 @@ subdivide_and_add (const graphene_point_t pts[4],
t0 = 0;
t1 = (t1 - pos[i]) / (1 - pos[i]);
}
+#endif
segment = g_new (graphene_point_t, 4);
memcpy (segment, pts, sizeof (graphene_point_t) * 4);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]