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

Reply via email to