Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows
#6
(08-13-2025, 09:20 AM)Scallact Wrote: Do you suggest that we can find the exact t parameter of a specific point on the curve by solving a third degree equation? I found a paper about this, but it's unreadable to me given my level of math notation understanding.

Yes, this is what I did for ofn-path-bend (in fact this is why ofn-path-bend is so fast). Your problem of course is that you have one equation per  Bézier segment, so you are not looking just for t but for t in the adequate segment. However, 1) you can often guess which segment, and 2) in most case for the other segments you won't get a solution for t in [0,1] and when you have one you can check that the solution for ŧ works for bother x and y (and unless you path does a loop there will be only one such pair in it).
Reply


Messages In This Thread
RE: pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows - by Ofnuts - 08-13-2025, 10:35 AM

Forum Jump: