[ 
https://issues.apache.org/jira/browse/PDFBOX-1924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr resolved PDFBOX-1924.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
                   1.8.5

Committed in rev 1569060 for the 2.0 version and 1569063 for the 1.8 branch.

> Gouraud shading: detect empty triangles
> ---------------------------------------
>
>                 Key: PDFBOX-1924
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1924
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.8.4, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 1.8.5, 2.0.0
>
>
> 1) The ch14.pdf file has some empty triangles on p. 20, because two points of 
> the triangle are identical. These empty triangles result in divide by zeroes, 
> which can result in black raster coloring of a whole page at resolutions that 
> I didn't use before. 
> Bugfix: detect and delete empty triangles, and added code to detect an empty 
> list and no background in GouraudShadingContext.getRaster().
> 2) One statement (raster.setPixels) in GouraudShadingContext was accidentally 
> moved one line up in the past which could result in lower performance.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to