SVG export of some surfaces shows some very thin extra lines
@sgougeon)
Reported by Samuel GOUGEON (bug_xs2svg.png (71.26 KB, image/png)
The bug 8310 example exported in SVG and rendered with Inkscape
BUG DESCRIPTION:
----------------
https://www.mail-archive.com/users@lists.scilab.org/msg08406.html
Changing the page background color of the SVG with Inkscape changes the color of these
lines. They are actually some tiny spaces in between adjacent decomposition triangles.
For a rough surface with many decomposition triangles, many lines are visible and can
make the surface rendering a bit fuzzy.
ERROR LOG:
----------
None.
HOW TO REPRODUCE THE BUG:
-------------------------
Use the test example of the bug 8310 :
X = [0 10 10 7 6.5 3.5 3 0 0]';
Y = [0 0 10 10 2 2 10 10 0]';
Z = zeros(X);
scf(0); clf, plot3d(X($:-1:1),Y($:-1:1),zeros(X))
gca().rotation_angles = [76 236];
File = TMPDIR + "/bug_svg_extra_lines.svg";
xs2svg(0, File);
OTHER INFORMATION:
------------------
Posted from Scilab 6.0.2
FIX: the SVG content shows that the edges of paths defining the triangles are not drawn.
When drawing them with the same color as the filling one, even with a tiny width,
interspaces disappear. Example:
<g style="... stroke:blue; stroke-width:0;"
id="g143">
<path
style="stroke:none;" <<<<<<<<< CURRENT
d="M329.0426 104.5757 L76.25 216.8174 L281.5067 171.5817 Z"
id="path145" />
</g>
--------------------------
<g style="... stroke:blue; stroke-width:0;"
id="g143">
<path
style="stroke:blue; stroke-width:0.3;" <<<<<<<<< NEW
d="M329.0426 104.5757 L76.25 216.8174 L281.5067 171.5817 Z"
id="path145" />
</g>
Edited by Vincent COUVERT