octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #48109] Trisurf fails to colour triangles corr


From: Hugo Raguet
Subject: [Octave-bug-tracker] [bug #48109] Trisurf fails to colour triangles correctly.
Date: Tue, 31 Oct 2017 12:29:15 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) qutebrowser/0.11.0 Version/9.0 Safari/602.1

Follow-up Comment #2, bug #48109 (project octave):

Hello

similar problem here, Octave 4.2.1 on Linux.
Obviously, `trisurf` is supposed to specify *one color per triangles*.
However, the source code expects one color per vertex, which is wrong:

...
        error ("trisurf: C must have 'numel (Z)' elements");
...
      error ("trisurf: TrueColor C matrix must be 'numel (Z)' rows by 3
columns");
...
    c = z(:);
...

However; when calling directly the primitive `patch` function (which is
eventually called in trisurf.m, but with wrong arguments), all is well.
This might explain other `trisurf`related bugs, and seems to be easily fixed.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48109>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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