Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simplifying a path
#2
I continue about the Simplifying plugin. The last input gives three options to choose from:
  • Ignore any selection
  • Simplify the part inside the selection, preserve the rest
  • Preserve the part inside the selection, simplify the rest
Example 1

First an example of the second choice. I made an elliptic selection and then Selection to path. On the left you see the resulting path with its anchors:

   

Too many anchors at the belly. I made a new selection covering those anchors (middle picture). Then I called the plugin otherwise with default inputs but choosing "Simplify the part inside the selection, preserve the rest". The result is on the right: the part inside the selection was simplified; in this case it happens to mean that those anchors disappeared altogether.

Also, the result is smoother. Namely, Gimp's Selection to path seems to have difficulties here. At the belly the path had several small straight line segments forming angles. I have even seen a case where there was a tiny concave arc! But the result from the plugin is smooth and nicely arching.

Example 2

Next the last choice, "Preserve the part inside the selection, simplify the rest". This is useful when you want to protect some particular anchors from the process of simplification. Consider the 'QR' on the left:

   

I first tried to simplify it by setting only "Preserve straight edges" to Yes. The result (not shown here) was good except that even after setting the "Allowed deviation" to a lower value there were clear gaps between the original and simplified paths. Examining those gaps suggested that certain anchors should be preserved. So I made a selection covering those anchors (in the middle picture) and called the plugin again and choosing "Preserve the part inside the selection, simplify the rest" (and of course "Preserve straight edges" set to Yes). The result was much better (on the right). Zooming in (in Gimp, not here!) one sees that the fit is not perfect but anyhow very good. And the number of anchors came down somewhat.

Example 3

The plugin can also be used to remove anchors from paths. Inkscape's node-removing tool is pleasant in that it tries to preserve the shape of the curve by changing the neighbouring handles. Gimp's tool, on the contrary, seems just to delete an anchor without adjusting handles in any way, resulting in distortion in the curve.

The new plugin may be helpful here. Consider the circle on the left.

   

It is the usual 4-anchor approximation. I made the selection as shown here and called the plugin with "Simplify the part inside the selection, preserve the rest". I also set the "Allowed deviation" a little higher (otherwise nothing happened). I got a 2-anchor approximation of the circle (in the middle). On the right you see the 4-anchor (blue) and the 2-anchor (red) paths on top of each other. Not bad.
Reply


Messages In This Thread
Simplifying a path - by Ottia Tuota - 05-16-2021, 09:20 AM
RE: Simplifying a path - by Ottia Tuota - 05-16-2021, 10:47 AM
RE: Simplifying a path - by denzjos - 05-16-2021, 04:24 PM
RE: Simplifying a path - by Ottia Tuota - 05-16-2021, 05:06 PM
RE: Simplifying a path - by Krikor - 05-16-2021, 05:23 PM
RE: Simplifying a path - by Ottia Tuota - 05-16-2021, 07:10 PM
RE: Simplifying a path - by Ofnuts - 05-16-2021, 09:17 PM
RE: Simplifying a path - by Ottia Tuota - 05-17-2021, 04:52 AM
RE: Simplifying a path - by Ofnuts - 05-17-2021, 10:57 AM
RE: Simplifying a path - by Ottia Tuota - 05-18-2021, 03:18 PM
RE: Simplifying a path - by Ofnuts - 05-18-2021, 05:27 PM
RE: Simplifying a path - by Ottia Tuota - 05-19-2021, 07:46 AM
RE: Simplifying a path - by Ofnuts - 05-19-2021, 12:13 PM
RE: Simplifying a path - by Ottia Tuota - 05-19-2021, 02:33 PM
RE: Simplifying a path - by Ottia Tuota - 05-31-2021, 05:36 PM
RE: Simplifying a path - by Zero01 - 05-31-2021, 08:46 PM
RE: Simplifying a path - by Ottia Tuota - 06-01-2021, 06:16 AM
RE: Simplifying a path - by Ottia Tuota - 06-27-2021, 01:02 PM
RE: Simplifying a path - by Krikor - 11-16-2021, 05:06 PM
RE: Simplifying a path - by Ottia Tuota - 11-16-2021, 06:11 PM
RE: Simplifying a path - by mbelew - 05-17-2024, 02:46 PM
RE: Simplifying a path - by rich2005 - 05-17-2024, 03:17 PM
RE: Simplifying a path - by PixLab - 05-18-2024, 05:01 AM
RE: Simplifying a path - by Krikor - 05-18-2024, 05:10 PM
RE: Simplifying a path - by PixLab - 05-19-2024, 03:44 AM
RE: Simplifying a path - by gasMask - 05-19-2024, 11:43 PM
RE: Simplifying a path - by rich2005 - 05-20-2024, 07:11 AM
RE: Simplifying a path - by Ofnuts - 05-20-2024, 01:28 PM
RE: Simplifying a path - by Krikor - 05-20-2024, 06:36 PM
RE: Simplifying a path - by gasMask - 05-20-2024, 10:38 PM
RE: Simplifying a path - by rich2005 - 05-21-2024, 09:35 AM
RE: Simplifying a path - by Krikor - 05-21-2024, 03:15 PM
RE: Simplifying a path - by PixLab - 05-21-2024, 12:42 AM
RE: Simplifying a path - by denzjos - 05-21-2024, 05:36 PM
RE: Simplifying a path - by Krikor - 05-21-2024, 06:35 PM
RE: Simplifying a path - by denzjos - 05-22-2024, 06:51 AM
RE: Simplifying a path - by gasMask - 05-22-2024, 01:37 AM
RE: Simplifying a path - by Ottia Tuota - 07-04-2024, 03:26 PM
RE: Simplifying a path - by rich2005 - 07-04-2024, 03:38 PM

Forum Jump: