octave-maintainers
[Top][All Lists]
Advanced

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

Re: patch coloring help


From: Pantxo Diribarne
Subject: Re: patch coloring help
Date: Sun, 08 Dec 2013 21:39:49 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

Le 08/12/2013 21:23, Ben Abbott a écrit :
On Dec 8, 2013, at 1:39 PM, Rik <address@hidden> wrote:

12/8/13

I'm trying to solve patch coloring inconsistencies between Matlab and
Octave.  Depending on options to OpenGL I can get the bi-linear
interpolation to run on either one of the main diagonals and I want to know
which one Matlab used.  Could someone run the following test script and
then send back a png of the output?

v = [0 0 0;1 0 0;1 1 0;0 1 0];
f = [1 2 3 4];
fvc = [1 0 0;0 1 0;1 0 1;1 1 0];
h = patch ('Vertices',v,'Faces',f,'FaceVertexCData',fvc,
          'FaceColor','flat','EdgeColor','flat',
          'Marker','o','MarkerFaceColor','flat')
set (h, 'facecolor', 'interp');
print -dpng tst_patch.png

Cheers,
Rik

The png is attached.

Ben

On linux, ML R2012a, Interpolation is done along the other diagonal. See attached png.

Pantxo

Attachment: tst_patch.png
Description: PNG image


reply via email to

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