Middle marker orientation

Bug #564428 reported by Nick
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

I think middle markers have wrong directions.
Now their direction is average direction of tangents at the point, it causes problems at sharp angles.
I think it will be better if direction will be the same with one tangent. Or markers should be not at every control point but at every middle point of the path's segment.
See attach for details.

Tags: markers
Revision history for this message
Nick (xepecine) wrote :
su_v (suv-lp)
tags: added: markers
removed: marker middle
Revision history for this message
su_v (suv-lp) wrote :

The markers created and rendered by Inkscape follow the SVG 1.1 specification:

1) The Inkscape stock markers have the orientation 'auto'
   <http://www.w3.org/TR/SVG11/painting.html#OrientAttribute>

2) Markers are positioned at nodes, not in the middle of segments:
   «'marker-mid' defines the arrowhead or polymarker that shall be drawn at every other vertex (i.e., every vertex except the first and last).»
   <http://www.w3.org/TR/SVG11/painting.html#MarkerProperties>

see also markers in the SVG test suite:
<http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-painting-marker-01-f.html>

Revision history for this message
Nick (xepecine) wrote :

I've thought abut that and I agree with the specification, but maybe there's a way to draw them a little bit better?

Not good way but could be the way is to calculate the angle and make markers not auto orientated but using angle (orient = "auto | <angle>"). To implement this way angles should be calculated every time the path changes.

Hmmm... Actually when auto is set angle are been calculated every time path's redraws and every change causes redraw...
May be it can be solved this way...

su_v (suv-lp)
summary: - Middle marker wrong direction
+ Middle marker orientation
Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
Papy Octet (guy-wallon) wrote :

Hello,

I have just realized a problem in Inkscape 0.48 about markers(scorers).

Indeed, that I draw a right segment, a curve of Bézier, a path freehand, it is impossible to place a marker(scorer) in the middle of the path.
Nevertheless the tool " Filling and outlines " always contains 3 fields of selection to place a marker(scorer) at the beginning, the end and the middle of path.

It is annoying because I often use the marker in the middle to indicate a direction of movement.
To be able to place a marker in the middle of a path, I have to add a knot in its middle but then raises another problem when I have to move the path: it complies in the middle!
And there is better: if I place several knots on a path, and if I placed a marker on the knot of the middle a little before, every new knot sees itself decked out by a marker. And that, it is not good of the whole!

A solution, maybe to solve this problem?

Thank you.
-------------------------------------------------------------------------------------------------------------------------------
Bonjour,

Je viens de me rendre compte d'un problème dans Inkscape 0.48 à propos des marqueurs.

En effet, que je trace un segment de droite, une courbe de Bézier, un chemin à main levée, il est impossible de placer un marqueur au milieu du chemin.
Pourtant l'outil "Remplissage et contours" contient toujours les 3 champs de sélection pour placer un marqueur en début, fin et milieu de chemin.

C'est embêtant parce que j'utilise souvent le marqueur au milieu pour indiquer un sens de déplacement.
Pour pouvoir placer un marqueur au milieu d'un chemin, je dois ajouter un nœud en son milieu mais alors se pose un autre problème lorsque je dois déplacer le chemin : il se plie au milieu !
Et il y a mieux : si je place plusieurs nœuds sur un chemin, et que j'ai placé un marqueur sur le nœud du milieu un peu avant, chaque nouveau nœud se voit affublé d'un marqueur. Et ça, ce n'est pas bon du tout !

Une solution, peut-être pour résoudre ce problème ?

Merci.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.