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: Ben Abbott
Subject: Re: Help with open face patches
Date: Mon, 09 Jun 2014 11:28:15 -0400


On Jun 9, 2014, at 11:19 AM, Rik <address@hidden> 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



reply via email to

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