path effect bend with convex, concave path

Asked by Chaffra Affouda

Hello,

When using path effect bend on 2 rectangle on top of each other, the resulting path is always bending downward irrespective of the fact the my arc path points upward or downward. I was expecting the bending to follow the path exactly.

I added the source code for a MWE below.

Question information

Language:
English Edit question
Status:
Expired
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Chaffra Affouda (chaffra) said :
#1

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="800"
   height="800"
   viewBox="0 0 800 800"
   id="svg4026"
   version="1.1"
   inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
   sodipodi:docname="ptest_path_effect_convex_concave.svg">
  <defs
     id="defs4028">
    <inkscape:path-effect
       effect="bend_path"
       id="path-effect1175"
       is_visible="false"
       bendpath="m 709.50178,896.20095 a 500.00003,576 0 0 1 0,-576.00002"
       prop_scale="1"
       scale_y_rel="false"
       vertical="false" />
    <inkscape:path-effect
       effect="bend_path"
       id="path-effect1152"
       is_visible="true"
       bendpath="m -67.489538,52.586174 a 500.00003,576 0 0 1 7e-6,576.000016"
       prop_scale="1"
       scale_y_rel="false"
       vertical="false" />
    <inkscape:path-effect
       effect="bend_path"
       id="path-effect1128"
       is_visible="true"
       bendpath="m -67.489538,52.586174 a 500.00003,576 0 0 1 7e-6,576.000016"
       prop_scale="1"
       scale_y_rel="false"
       vertical="false" />
    <inkscape:path-effect
       effect="bend_path"
       id="path-effect4692"
       is_visible="true"
       bendpath="m 127.99999,346.36216 -13.20494,9.01639"
       prop_scale="1"
       scale_y_rel="false"
       vertical="false"
       bendpath-nodetypes="cc" />
    <inkscape:path-effect
       effect="bend_path"
       id="path-effect4681"
       is_visible="true"
       bendpath="m 105.04917,474.23101 c 6.629,-53.64847 31.12613,-85.85518 47.4508,-127.86885"
       prop_scale="1"
       scale_y_rel="false"
       vertical="false"
       bendpath-nodetypes="cc" />
    <inkscape:path-effect
       effect="bend_path"
       id="path-effect7177"
       is_visible="false"
       bendpath="m 32,1000.6122 c 0,0 180.25873,46.8173 270.25873,46.8173 90,0 269.74127,-46.8173 269.74127,-46.8173"
       prop_scale="1"
       scale_y_rel="false"
       vertical="false"
       bendpath-nodetypes="czc" />
    <inkscape:path-effect
       effect="bend_path"
       id="path-effect7177-5"
       is_visible="true"
       bendpath="m 413.66508,-229.11343 a 576,500.00003 0 0 1 -576.00002,1e-5"
       prop_scale="1"
       scale_y_rel="true"
       vertical="false"
       bendpath-nodetypes="cz" />
    <inkscape:path-effect
       effect="bend_path"
       id="path-effect1175-6"
       is_visible="true"
       bendpath="m 0.44701608,20.586194 a 500.00003,576 0 0 1 6.8e-6,576.000016"
       prop_scale="1"
       scale_y_rel="false"
       vertical="false" />
  </defs>
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="0.601"
     inkscape:cx="500"
     inkscape:cy="500"
     inkscape:document-units="px"
     inkscape:current-layer="layer1"
     showgrid="true"
     units="px"
     fit-margin-top="0"
     fit-margin-left="0"
     fit-margin-right="0"
     fit-margin-bottom="0"
     inkscape:snap-global="true"
     inkscape:snap-bbox="true"
     inkscape:bbox-nodes="true"
     inkscape:window-width="1348"
     inkscape:window-height="836"
     inkscape:window-x="92"
     inkscape:window-y="27"
     inkscape:window-maximized="0">
    <inkscape:grid
       type="xygrid"
       id="grid4034"
       spacingx="0.1"
       spacingy="0.1"
       empspacing="5"
       dotted="true" />
  </sodipodi:namedview>
  <metadata
     id="metadata4031">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title></dc:title>
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="layer1"
     transform="translate(0,-252.36216)">
    <path
       style="fill:none;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
       id="path5544"
       sodipodi:type="arc"
       sodipodi:cx="-68.650558"
       sodipodi:cy="416.00003"
       sodipodi:rx="500.00003"
       sodipodi:ry="576"
       sodipodi:start="5.7595865"
       sodipodi:end="0.52359878"
       d="m 364.36216,128.00001 a 500.00003,576 0 0 1 10e-6,576.00002"
       sodipodi:open="true"
       transform="matrix(0,1,1,0,0,0)" />
    <g
       id="g1141"
       inkscape:path-effect="#path-effect1175"
       transform="translate(-80,175.99998)">
      <path
         style="fill:#00ff00"
         d="m 192,572.36218 h 608 v 32 H 192 Z"
         id="rect1135"
         inkscape:original-d="m 192,572.36218 h 608 v 32 H 192 Z"
         inkscape:connector-curvature="0" />
      <path
         style="fill:#ff0000"
         d="m 192,540.36218 h 608 v 32 H 192 Z"
         id="rect1137"
         inkscape:original-d="m 192,540.36218 h 608 v 32 H 192 Z"
         inkscape:connector-curvature="0" />
    </g>
    <g
       id="g1141-7"
       inkscape:path-effect="#path-effect1175-6"
       transform="rotate(-90,340.774,235.02254)"
       inkscape:transform-center-x="-49.414828"
       inkscape:transform-center-y="192.45774">
      <path
         style="fill:#00ff00"
         d="M 0.44701608,20.586194 C 45.005288,109.49431 67.434324,209.13726 67.434326,308.5862 67.434327,408.03514 45.005293,507.6781 0.44702288,596.58621 L -28.161221,582.24855 C 14.09426,498.0875 35.392709,403.22377 35.434326,308.5862 35.392706,213.94863 14.094255,119.0849 -28.161228,34.92385 Z"
         id="rect1135-5"
         inkscape:original-d="m 192,572.36218 h 608 v 32 H 192 Z"
         inkscape:connector-curvature="0" />
      <path
         style="fill:#ff0000"
         d="M 29.05526,6.2485382 C 75.916321,99.903714 99.475942,204.32588 99.434326,308.5862 c 0.04162,104.26032 -23.518,208.68249 -70.379059,302.33767 L 0.44702288,596.58621 C 45.005293,507.6781 67.434327,408.03514 67.434326,308.5862 67.434324,209.13726 45.005288,109.49431 0.44701608,20.586194 Z"
         id="rect1137-3"
         inkscape:original-d="m 192,540.36218 h 608 v 32 H 192 Z"
         inkscape:connector-curvature="0" />
    </g>
  </g>
</svg>

Revision history for this message
Hachmann (marenhachmann) said :
#2

Please see my answer here:
http://www.inkscapeforum.com/viewtopic.php?f=5&t=33178

(also let us know there if you have any issues following the given instruction)

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.