Hello, I have converted the Matlab code bb.m into Scilab and the calculations are all fine. Verified the results in Octave. However, the beachball fill plot is not working:
The Octave/Matlab plot is fine, but the Scilab plot is not filled properly suggesting that xfpoly is reading the vertex order oddly. I also exported the data out of Octave and Scilab as CSV files and made sure that both fill the polygon correctly via QGIS. xfpoly should do the same as the Octave/Matlab fill function, so not sure how to proceed as it is critical to get the filled regions correctly sorted. A convoluted method is to break it up into two polygon regions, but that is not the route to go down. Octave code (BB_plot_mat.png): fill(xx,yy,'w') fill(Y,X,'k') .Scilab code (plot_test.png): xfpoly(xx,yy,addcolor([1 1 1])) xfpoly(Y,X,addcolor([0 1 1])) Thanks Lester This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/
_______________________________________________ users mailing list - users@lists.scilab.org Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org> https://lists.scilab.org/mailman/listinfo/users