I agree that this would fix the problem, but we should look at fixing it to automatically do this if the type is coming in as unsigned char. I will look at this.

David

Randall Hopper:
 |     But then when we get to rasterization and clipping down here:
 |
 |        DXRender -> ... _dxfPaint -> ... -> _dxf_Quad -> _dxf_zclip_quads
 |
 |in _dxf_zclip_quads, the TRYCLIP macro (zclip.h) is used 6 times.  It
 |invokes the other macros SPLIT and ADDPT (also zclip.h).  These macros
 |assume that if there is no colormap (xf->cmap = NULL), then the colors
|must be RGBColor structs (floats) which is not correct. |
 |     The work-around is not to Render anything with 24-bit RGB colors,

By way of confirmation, this unsigned char[3] -to- float color conversion:

     Mark("colors") ---> Compute("$0/255.0") ---> Unmark()

inserted before the data gets to render seems to avoid all encountered
memory problems.

--
Randall Hopper (mailto:[EMAIL PROTECTED])
Lockheed Martin Operation Support
EPA Scientific Visualization Center
US EPA MD/24 ERC-1A; RTP, NC 27711

--
.............................................................................
David L. Thompson                          The University of Montana
mailto:[EMAIL PROTECTED]                 Computer Science Department
http://www.cs.umt.edu/u/dthompsn           Missoula, MT  59812
                                           Work Phone : (406)257-8530

Reply via email to