bugGNU Octave - Bugs: bug #45357, patch does not stack properly

 
 

bug #45357: patch does not stack properly

Submitter:  Muhali <muhali>
Submitted:  Fri 19 Jun 2015 02:31:20 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 19 Jun 2015 02:57:37 PM UTC, comment #1: 

Hi,

Yes, this is a known issue (see bug #44735): see also the plot comparison page ([1], search for "patch" keyword).

Basically, when two patches have the same z coordinate, OpenGl has a way to disambiguate which one should be drawn on top of the other : glPolygonOffset. Unfortunately this doesn't work for line primitives that we associate with polygons (see e.g. [2]).

Can you report in bug #44735 the additional informations you brought: pdf are rendered correctly in ML.

Closing report as duplicate.

[1] http://tech-chat.de/compare_plot_demos/
[2) https://www.opengl.org/archives/resources/faq/technical/polygonoffset.htm

Pantxo Diribarne <pantxo>
Group Member
Fri 19 Jun 2015 02:31:20 PM UTC, original submission:  

With two triangles created this way


patch([1 2 3], [1 2 1], 0.1*[1 1 1]) ;
patch(0.5 +[1 2 3], [1 2 1], 0.9*[1 1 1]) ;
print octave.png


one gets the figure attached. The right edge of the first (black) triangle should not be visible.

ML does it correctly, but interestingly, when printing to png one gets the same black line, while pdf prints are ok.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34262:  octave.png added by muhali (29KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-19 pantxo Open/ClosedOpen Closed
    2015-06-19 pantxo CategoryPlotting Plotting with OpenGL
        StatusNone Duplicate
    2015-06-19 muhali Attached File- Added octave.png, #34262

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code