Randy, I'm pretty sure that it ought to be just xf->normals_dep, rather than xf->normals_dep==dep_positions. Are you working in there, or should I just fix it?
Greg Randall Hopper <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 03/18/2002 11:11:31 AM Please respond to [email protected] Sent by: [EMAIL PROTECTED] To: [email protected] cc: Subject: [opendx-dev] line.c bug - input solicited In src/exec/libdx/line.c::_dxf_Line(): _dxfInitApplyLights(xf->kaf, xf->kdf, xf->ksf, xf->kspf, xf->kab, xf->kdb, xf->ksb, xf->kspb, xf->fcolors, xf->bcolors, xf->cmap, xf->normals, xf->lights, ?? -> xf->colors_dep, xf->normals_dep==dep_positions, cbuf, NULL, 2, xf->fcst, xf->bcst, xf->ncst, fbyte, 0); A boolean parameter is being passed for the normals "dependency" parameter, which has the following valid values: typedef enum { dep_positions, dep_connections, dep_polylines } dependency; The compiler complains, and this looks like a bug to me. If the normals are position dependent, it lies and says they're connection dependent and vice versa. If they're polylines-dependent, it says they're position dependent. Anyone have some insight as to what DX is doing here? For now, I'll just cast it and add a FIXME comment. Thanks, Randy -- Randall Hopper (mailto:[EMAIL PROTECTED]) Lockheed Martin Operation Support EPA Scientific Visualization Center US EPA N127-01; RTP, NC 27711
