Greyscale image from part for CNC milling

Hi Everybody,
i’m using a small semiprofessional CNC milling machine, which uses greyscale images of parts (depth map) to create GCODE for milling 3D-parts.
I have created a simple definition to easily convert geometry to greyscale image in top view.
Maybe someone can use that too.
You just need to provide a closed brep and a cube as blank (17.2 KB)