Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simplifying a path
#11
Interesting. Did you try to figure out what is t for which P(t)==K. From my dealings with Bézier curves over the past years, I would says that it is a bell curve very centered around t=0.5 (even if that specific curve has a cusp or a loop), so using this instead of trying to find the "best" point could save you some time. But of course it only works with single splines and not full strokes.

Also you can save some time by letting Gimp do as much computation for you as possible (since its done in C, somewhat faster than Python). For instance an accuracy criteria could just be the distance between your K=P(0.5) and the point in the middle of the stroke (using Gimp's getPointAtDist()).
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

Forum Jump: