<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"Times New Roman \, serif";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:black;
mso-contextual-alternates:no;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:black;
mso-contextual-alternates:no;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:black;
mso-contextual-alternates:no;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle26
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:black;
mso-contextual-alternates:no;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:black'>Hi Samuel,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>Fyi, adding a small number (~1e-6) to the last sample of the series results in a good filled curve plot2d.<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Le voilà:<o:p></o:p></span></p><p class=MsoNormal><img width=281 height=213 id="_x0000_i1026" src="cid:image002.jpg@01CFBEC0.F54A9DE0"><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;color:black'><o:p> </o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Times New Roman","serif";color:windowtext'>“<i>Never underestimate the ingenuity of complete fools."</i>, Douglas Adams<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Kind regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Rafael G.<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> users [mailto:users-bounces@lists.scilab.org] <b>On Behalf Of </b>Samuel Gougeon<br><b>Sent:</b> Friday, August 22, 2014 8:46 AM<br><b>To:</b> International users mailing list for Scilab.<br><b>Subject:</b> Re: [Scilab-users] Scilab 5.5 filled curve plotting issue?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hello Rafael,<br><br>Le 19/08/2014 21:17, Rafael Guerra a écrit :<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hi Samuel,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Thanks for pointing to the bug tracker.<o:p></o:p></p><p class=MsoNormal>I have read the explanations but could not find a workaround.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I hope what I say is mathematically correct:<o:p></o:p></p><p class=MsoNormal><i>The two data series provided in my example below seem to be topologically equivalent and if true, </i><o:p></o:p></p></blockquote><p class=MsoNormal><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br> <br>Yes, both are self-intersecting polygons. The limitation of the algorithm does not say that none of self-intersecting polygons can be processed conveniently, but that there is no garanty for some of them.</span></i><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>.../... <br><br><o:p></o:p></span></p><p class=MsoNormal>I.e., how to fix top data series provided so that it displays properly like the bottom one?<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br>By fixing the algo rewritten for Scilab 5.3.0 with heavy downgrades listed in the comment w.r.t. the former one.<br>This is also showing in 3D and reported here:<br><a href="http://bugzilla.scilab.org/show_bug.cgi?id=8310">http://bugzilla.scilab.org/show_bug.cgi?id=8310</a><br><a href="http://bugzilla.scilab.org/attachment.cgi?id=2068">http://bugzilla.scilab.org/attachment.cgi?id=2068</a><br><br>Regards<br>Samuel<br><br><br><o:p></o:p></span></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><img border=0 width=321 height=272 id="Picture_x0020_1" src="cid:image006.jpg@01CFBEC0.F54A9DE0" alt="cid:image003.jpg@01CFBB45.426D7180"><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Thanks and regards<o:p></o:p></p><p class=MsoNormal>Rafael G.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> users [<a href="mailto:users-bounces@lists.scilab.org">mailto:users-bounces@lists.scilab.org</a>] <b>On Behalf Of </b>Samuel Gougeon<br><b>Sent:</b> Tuesday, August 19, 2014 8:40 AM<br><b>To:</b> International users mailing list for Scilab.<br><b>Subject:</b> Re: [Scilab-users] Scilab 5.5 filled curve plotting issue?</span><o:p></o:p></p></div></div><p class=MsoNormal> <o:p></o:p></p><div><p class=MsoNormal>Hello Rafael,<br><br>Le 19/08/2014 01:33, Rafael Guerra a écrit :<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-GB>Hello,</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB>The attached simple Scilab script and data plots quite similar data as filled curves in Scilab 5.5 (Win 7) with quite different results:</span><o:p></o:p></p></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman , serif","serif"'>This is a known bug reported 2 years ago in<br><a href="http://bugzilla.scilab.org/show_bug.cgi?id=11632">http://bugzilla.scilab.org/show_bug.cgi?id=11632</a><br> <br><br><br></span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB>Any ideas of what can be causing the completely different behaviour of plot2d / polyline_style = 5?</span><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman , serif","serif"'>Please see comments #2 and #3 of the report.<br><br>Regards<br>Samuel</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>users mailing list<o:p></o:p></pre><pre><a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><o:p></o:p></pre><pre><a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a><o:p></o:p></pre><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></div></body></html>