[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Incorrect computation of Faces in __patch__.m
From: |
Michael Goffioul |
Subject: |
Incorrect computation of Faces in __patch__.m |
Date: |
Mon, 12 Nov 2007 14:48:36 +0100 |
The following patch fixes it.
Index: scripts/plot/__patch__.m
===================================================================
RCS file: /cvs/octave/scripts/plot/__patch__.m,v
retrieving revision 1.7
diff -c -p -r1.7 __patch__.m
*** scripts/plot/__patch__.m 13 Oct 2007 05:13:29 -0000 1.7
--- scripts/plot/__patch__.m 12 Nov 2007 13:46:47 -0000
*************** function [h, fail] = __patch__ (p, varar
*** 114,120 ****
else
vert = [x(:), y(:)];
endif
! faces = reshape (1:numel(x), size(x,2), size(x,1));
elseif (have_faces)
nr = size (faces, 2);
nc = size (faces, 1);
--- 114,121 ----
else
vert = [x(:), y(:)];
endif
! faces = reshape (1:numel(x), size(x,1), size(x,2));
! faces = faces';
elseif (have_faces)
nr = size (faces, 2);
nc = size (faces, 1);
scripts/ChangeLog:
2007-11-12 Michael Goffioul <address@hidden>
* plot/__patch__.m: fix computation of faces when patch is defined
with X/Y/Z data.
- Incorrect computation of Faces in __patch__.m,
Michael Goffioul <=