octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with open face patches


From: sergey plotnikov
Subject: Re: Help with open face patches
Date: Mon, 09 Jun 2014 17:23:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

please, see the file attached

On 09/06/14 17:19, Rik wrote:
6/9/14

Could someone run the code below under Matlab and send back the resulting
png file?  I'm trying to nail down the corner case where one of the
vertices in a patch has a NaN which should produce an open, uncolored face.

--- Code ---
v = [0 0 0;1 0 0;1 NaN 0;0 1 0];
f = [1 2 3 4];
fvc = [1 0 0;0 1 0;1 0 1;1 1 0];
clf;
hp = patch ('Vertices',v,'Faces',f,'FaceVertexCData',fvc,
'EdgeColor','flat', 'linewidth', 3);
print -dpng tst.png
--- End Code ---

Thanks,
Rik


Attachment: tst.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]