BRL-CAD
Extruded bitmap (EBM) images from database object, refactor file reader (task #3 of 5)
For this third task, extract the logic from rt_ebm_import5() that reads bw data from a file into a get_file_data() function and update rt_ebm_import5() to call that function. You may want to refer to src/librt/primitives/dsp/dsp.c as it has a very similar example, but pay attention to the different data types of EBM vs DSP (ebm reads unsigned char data, dsp reads unsigned 16bit data).
SUBMIT a patch file with your source code changes.
Task tags
Students who completed this task
Jebbly