Why does Inkscape automatically convert Cubic Bezier straight line to Line Segment?
Dear Inkscape-devel,
I am not sure if this is a design decision, but when I draw a cubic Bezier straight line on canvas, it would always get converted to a linear segment (no tangent node handles) automatically. This seems to happen in other scenarios (specifically in LPE) as well.
This causes a little bit of an issue when I work on an LPE that requires having cubic bezier output, even for straight line, to maintain C1 smoothness across path segments. However, this automatic conversion will break my curve continuity, because I don’t have the tangent “node” to define for a linear segment that is connected to a cubic segment.
In src/helper/geom, there is a method pathv_to_cubicbezier() that does this conversion, but it’s tricky: the tangent handles are somewhat “hacked” by adding small amount of offset to make the curve actually not perfectly linear. Although visually it maybe ok, but for scenarios that we care about precision, we may want strict linear segment to retain as-is, even though it’s in cubic form.
Is there a way to turn this automatic conversion off?
Regards, _______________________ Papoj "Hua" Thamjaroenporn papojt@...3117...
I askedme too why this automatism. I meet frequently this problem when I want to draw font glyphs with organic shapes : if I divide a straight vertical line and want to move smoothly some of their nodes without losing their vertical handles positioning I must always convert it from a linear segment to a Bézier straight line. And oftenpair of nodesoriented in any direction and aligned with their handles convert automatically to linear segments too.
Le 17/12/15 03:11, Papoj Thamjaroenporn a écrit :
Dear Inkscape-devel,
I am not sure if this is a design decision, but when I draw a cubic Bezier straight line on canvas, it would always get converted to a linear segment (no tangent node handles) automatically. This seems to happen in other scenarios (specifically in LPE) as well.
This causes a little bit of an issue when I work on an LPE that requires having cubic bezier output, even for straight line, to maintain C1 smoothness across path segments. However, this automatic conversion will break my curve continuity, because I don’t have the tangent “node” to define for a linear segment that is connected to a cubic segment.
In src/helper/geom, there is a method pathv_to_cubicbezier() that does this conversion, but it’s tricky: the tangent handles are somewhat “hacked” by adding small amount of offset to make the curve actually not perfectly linear. Although visually it maybe ok, but for scenarios that we care about precision, we may want strict linear segment to retain as-is, even though it’s in cubic form.
Is there a way to turn this automatic conversion off?
Regards, _______________________ Papoj "Hua" Thamjaroenporn papojt@...3117... mailto:papojt@...3117...
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (2)
-
ivan louette
-
Papoj Thamjaroenporn