A header-only and easy to integrate mesh voxelizer, the source code is available under MIT here.
A few examples using this library:
.obj