Defining lines with patterns

Asked by Luc Le Blanc

How can I define a line that follows a given pattern? Example, a series of + signs (this is a requirement for sketching caves with feature symbols such as ceilings)

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) said :
#1

Try creating a text line like this: "++++++++++++++++++++++++++++++++++"
Create a bezier curve, select both elements and go to text>put text on path.

Revision history for this message
Luc Le Blanc (speleoluc) said :
#2

Guillermo Espertino (Gez) wrote:

> Try creating a text line like this: "++++++++++++++++++++++++++++++++++"
> Create a bezier curve, select both elements and go to text>put text on path.

Alas, cave symbol line patterns are usually not text characters. The '+' was just a convenient example I could draw here with my keyboard :(

See for instance the "Intermittent water course." line symbol in http://www.caves.org.au/m_stab-1d.html

Revision history for this message
mahfiaz (mahfiaz) said :
#3

This is what start-mid-end markers are for. See stroke style tab in Ctrl+Shift+F dialog.

Revision history for this message
Luc Le Blanc (speleoluc) said :
#4

Alas, these markers do not rotate when following a curved line. Ex. if you draw a T as the mid-marker, they will always appear as vertical Ts, no matter how the line curves. And such settings cannot be named, so you cannot refer to a given mid-marker style throughout a drawing :(

Revision history for this message
mahfiaz (mahfiaz) said :
#5

Scissors as mid-markers work fine and are aligned to path. So this is possible. Tried it out myself and it worked fine.

Revision history for this message
chrischenier (chenier) said :
#6

The scissors are indeed rotated to match the line angle where it's inserted. However the scissor image is not morphed to wrap along the line, which is what would be required here.

Moreover, the distance between scissors varies (one appears to be inserted at every control point). What is needed is a way to morph the image to the shape of the line, and have it repeat at a fixed interval. A more common example would be to try to reproduce railroad tracks on a map: you want a series of H on it's side put end-to-end, but you want them to touch each other; not overlap; and follow a smooth curve, not bend sharply between H's.

Can you help with this problem?

Provide an answer of your own, or ask Luc Le Blanc for more information if necessary.

To post a message you must log in.