bugGNU Octave - Bugs: bug #40247, patch chooses wrong vertex for...


bug #40247: patch chooses wrong vertex for coloring face

Submitted by:  Rik <rik5>
Submitted on:  Fri 11 Oct 2013 06:02:09 PM UTC  
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 14 Dec 2013 06:36:58 AM UTC, comment #1:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/647d806868ee). There is still an issue with "interp" shading in that the colors match the Mac version of Matlab, but not the Linux version.

Rik <rik5>
Project Administrator
Fri 11 Oct 2013 06:02:09 PM UTC, original submission:

According to the documentation, with "facecolor" = "flat", the patch color is taken from the first vertex specified in the "faces" property. Octave is using some other algorithm. Likely fix will be in gl-render.cc.

The following example should produce a red face.

Specifying a different first vertex, should change the color. So,

should color the face yellow because the 4th vertex (which is listed first and thus sets the color) facevertexcdata value is [1 1 0].

Rik <rik5>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-12-14 rik5 StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.3