It is currently Mon May 20, 2013 2:22 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 53 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Parallel path
PostPosted: Mon Mar 21, 2011 8:51 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Mar 02, 2011
Posts: 1690
Location: Michigan
It would be very cool to have this under the right click and then somewhere in Filters list where you could affect more than one Path at once :D

_________________
Image
100% mobile user sorry if I am brief in what I am saying


Top
 Profile  
 

 Post subject: Re: Parallel path
PostPosted: Mon Mar 21, 2011 9:05 pm  (#22) 
Online
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 8973
Location: "Looking for my eraser" =P
Well what it does is create an inside or outside selection along with the original correct?Then you are able to fill it or stroke it?

If you stroke it will it stroke two lines (one on each side of the selection value you enter)?

<Vectors>/Parallel path - i suppose would be appropriate as you would be working with Paths at the time.

Am i correct in assuming what the script does?

_________________
Image
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: Parallel path
PostPosted: Tue Mar 22, 2011 7:09 am  (#23) 
Offline
GimpChat Member
User avatar

Joined: Oct 25, 2010
Posts: 1296
Rod wrote:
Well what it does is create an inside or outside selection along with the original correct?Then you are able to fill it or stroke it?

If you stroke it will it stroke two lines (one on each side of the selection value you enter)?

<Vectors>/Parallel path - i suppose would be appropriate as you would be working with Paths at the time.

Am i correct in assuming what the script does?
A picture is worth a thousands words...

Attachment:
Ribbon explained.png
Ribbon explained.png [ 19.88 KiB | Viewed 305 times ]

_________________
Image


Top
 Profile  
 
 Post subject: Re: Parallel path
PostPosted: Tue Mar 22, 2011 3:29 pm  (#24) 
Offline
GimpChat Member
User avatar

Joined: Mar 02, 2011
Posts: 1690
Location: Michigan
Very cool, the picture explains it perfectly, although I am not sure, you mean the gray was original? And assuming from the fact I see the Open path picture there, is the script done?

_________________
Image
100% mobile user sorry if I am brief in what I am saying


Top
 Profile  
 
 Post subject: Re: Parallel path
PostPosted: Tue Mar 22, 2011 5:21 pm  (#25) 
Offline
GimpChat Member
User avatar

Joined: Apr 23, 2010
Posts: 818
Location: not from Guildford after all
ofnuts wrote:
A picture is worth a thousands words...

Attachment:
Ribbon explained.png

I look forward to seeing your code (he said in understated tones). Are you implementing Thomas Hein's "Flattening of Cubic Bézier Offset Curves"?

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Profile  
 
 Post subject: Re: Parallel path
PostPosted: Tue Mar 22, 2011 5:49 pm  (#26) 
Offline
GimpChat Member
User avatar

Joined: Oct 25, 2010
Posts: 1296
saulgoode wrote:
ofnuts wrote:
A picture is worth a thousands words...

Attachment:
Ribbon explained.png

I look forward to seeing your code (he said in understated tones). Are you implementing Thomas Hein's "Flattening of Cubic Bézier Offset Curves"?
No, I'm using a brute force approach, iterating the strokes, finding the coordinates of the point at requested distance on the perpendicular, and so generating a huge number of lineto() that Gimp seems to handle very well (my code for this is a derivative of my Slinky plugin, for which I doubt there is a nice mathematical solution).

For the simple case we have here, I thought there could be a more subtle solution and your pointer is good news. However the text of the article on various sites is protected by a 30$+ fee and since I'm not expecting any financial compensation on the script I won't bother.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Parallel path
PostPosted: Tue Mar 22, 2011 6:08 pm  (#27) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2688
The paper in question, if anyone is interested, below:


Attachments:
File comment: Thomas Hain Bezier Flattening in PDF format.
BezierFlattening.pdf [471.72 KiB]
Downloaded 25 times

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson
Top
 Profile  
 

 Post subject: Re: Parallel path
PostPosted: Tue Mar 22, 2011 6:45 pm  (#28) 
Offline
GimpChat Member
User avatar

Joined: Oct 25, 2010
Posts: 1296
mahvin wrote:
The paper in question, if anyone is interested, below:
Cool. Now grabbing the aspirin...

_________________
Image


Top
 Profile  
 
 Post subject: Re: Parallel path
PostPosted: Wed Mar 23, 2011 2:52 am  (#29) 
Online
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 8973
Location: "Looking for my eraser" =P
Looks exactly how i pictured it. :)
I shall now do double duty rain dancing -
Image

_________________
Image
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: Parallel path
PostPosted: Wed Mar 23, 2011 3:40 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Oct 25, 2010
Posts: 1296
Rod wrote:
Looks exactly how i pictured it. :)
I shall now do double duty rain dancing -
Image
It's basically finished, just needs a bit more testing, and then creation of a SourceForge project. This could happen tonight. On the other hand, on weekdays, available time for pythonic Gimp isn't very weather-dependent (in fact if it rains my motorcycle commuting takes longer). It would be more appropriate to pray Vishnu, Shiva and other gods for painless integration of the code provided by my offshore correspondents, so I can come home early.

(fortunately you have lost your powers, it's very sunny this morning).

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 53 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Rod and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

* Login   * Subscribe to RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group