[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OpenGL graphics crash
From: |
Michael Goffioul |
Subject: |
Re: OpenGL graphics crash |
Date: |
Wed, 8 Jul 2009 23:11:01 +0100 |
On Wed, Jul 8, 2009 at 10:54 PM, Michael
Goffioul<address@hidden> wrote:
> The function convert_cdata computes a real RGB version of CDATA
> property. If CDATA is already in RGB format, it returns it, otherwise
> it maps the CDATA values to the figure colormap according to the
> SCALED property.
>
> That being said, I'm also unsure about what should happen when
> CDATA contains NA elements and what's the purpose of having
> such values in CDATA...
I'm wondering whether the quad should be clipped (not rendered) when the
CDATA value of any of its vertices is NA. I don't know what's the
expected behavior, but if the quad has to be clipped, then:
1) convert_cdata should put NaN for the corresponding color
2) the clipping algorithm of the surface rendering should be enhanced
to take the color values into account
I don't have the time to do it myself, but these changes should be
pretty straightfoward, if anybody is willing to do it.
Michael.