Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-bend-path
#41
Doh!!! forgot to upload! Done now, version should be 0.3. Now you can have several nodes in each envelope strokes.
Reply
#42
Ok, got that, a quick try and works nicely. Much larger file 10364B

You have a folder (empty) included in the zip 'home/bd/Code/Gimp/PathTools/ofn-bend-path/' that might confuse some.
Reply
#43
(12-24-2017, 11:00 AM)rich2005 Wrote: Ok, got that, a quick try and works nicely. Much larger file  10364B

You have a folder (empty) included in the zip 'home/bd/Code/Gimp/PathTools/ofn-bend-path/' that might confuse some.

1) Yes, code is somewhat more complex Smile

2) Thanks, removed, and uploaded
Reply
#44
(12-24-2017, 09:50 AM)rich2005 Wrote: How did you get that sine wave form with only a start and an end node?

I was thrown off by that as well   Big Grin

But you can make a fake sine with only four points.
Reply
#45
(12-24-2017, 01:51 PM)Espermaschine Wrote: But you can make a fake sine with only four points.

Just three is enough for a full wavelength:

   
Reply
#46
I was just playing with the script and ran into an error.


Attached Files Thumbnail(s)
   

.xcf   SeaSick1.xcf (Size: 32.4 KB / Downloads: 283)
Reply
#47
(12-24-2017, 07:56 PM)Blighty Wrote: I was just playing with the script and ran into an error.

Works for me (but i remade it from the screenshot, did not use Blighty's xcf).

   


Attached Files
.xcf   Seasick_ESP.xcf (Size: 381.08 KB / Downloads: 296)
Reply
#48
Looking into it. The strangeness is that the 3rd degree polynomial is actually a 1st degree one in some curve elements.

Btw, how did you generate that sine wave?

OK, figured out the cause, the individual Bézier curves in your top curve have the X coordinates of the tangent be exactly 1/3 from the extremities(*):
Code:
PointsX: [0.0, 12.5, 25.0, 37.5], coeffsX: [0.0, 37.5, 0.0, 0.0]
PointsX: [37.5, 50.0, 62.5, 75.0], coeffsX: [37.5, 37.5, 0.0, 0.0]
PointsX: [75.0, 87.5, 100.0, 112.5], coeffsX: [75.0, 37.5, 0.0, 0.0]
PointsX: [112.5, 125.0, 137.5, 150.0], coeffsX: [112.5, 37.5, 0.0, 0.0]
PointsX: [150.0, 162.5, 175.0, 187.5], coeffsX: [150.0, 37.5, 0.0, 0.0]

This makes the 3rd and 2nd degree coefficients equal to 0. I'll have to improve the math a bit. Stay tuned.

(*) this also true of the bottom sine, however, since the wavelength is different, the range on X is not divisible exactly by 3, so woth the round off errors, the coefficients are small but not null.



OK, fixed, see v0.3 (just uploaded to SF)

Thanks for the report and the test-case.
Reply
#49
(12-24-2017, 11:20 PM)Ofnuts Wrote: Btw, how did you generate that sine wave?

It is a script called Shape Paths, from here:
http://registry.gimp.org/node/59

(Does it create too many nodes?  Huh  Huh )
Reply
#50
(12-25-2017, 08:23 PM)Blighty Wrote: It is a script called Shape Paths, from here:
http://registry.gimp.org/node/59

(Does it create too many nodes?  Huh  Huh )

*shock*

its mandatory to use only ofnuts path tools here !!!!!!!   Big Grin

the correct answer is: "dear ofnuts, of course i used ofn-path-waves"   Heart
Reply


Forum Jump: