I'd like to have a way to take a 3D vector solid (such as produced by AutoCad or another CAD package) and convert it into a 3D raster image. That is, I'd like to generate a 3D matrix, where each element (x, y, z) indicates whether the point (x, y, z) is empty or part of the solid.
Are there existing tools to do this? Do such 3D raster file formats exist? I planning on writing some software that needs this functionality, so any help on reusing existing libraries or writing this from scratch is appreciated.