Help with open face patches

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with open face patches

Rik-4
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 | Threaded
Open this post in threaded view
|

Re: Help with open face patches

nul0m
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
>


tst.png (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Help with open face patches

bpabbott
Administrator
In reply to this post by Rik-4

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