[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44735] OpenGL based figure has incorrect elem
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #44735] OpenGL based figure has incorrect element / object depth |
Date: |
Mon, 06 Apr 2015 04:44:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 |
Follow-up Comment #1, bug #44735 (project octave):
Can you get someone on the maintainers or help list to run the example in
Matlab and upload the figures to this report. It would be nice to see what we
are trying to emulate.
Sample code:
clf;
t1 = (1/16:1/8:1)' * 2*pi;
t2 = ((1/16:1/16:1)' + 1/32) * 2*pi;
x1 = sin (t1) - 0.8;
y1 = cos (t1);
x2 = sin (t2) + 0.8;
y2 = cos (t2);
vert = [x1, y1; x2, y2];
fac = [1:8,NaN(1,8);9:24];
patch ('Faces',fac, 'Vertices',vert, ...
'FaceVertexCData',[0, 1, 0; 0, 0, 1], 'FaceColor', 'flat');
%% Capture screenshot here and save to patch4_scrn.png
%% Now capture printout
print patch4_prnt.pdf
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44735>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/