There has been plenty of users who created their own voxel engines. Simply search the forums for ‘voxel’ or ‘voxel engine’
eg: YAVE – Yet Another Voxel Engine [Dev blog.]
There’s ton of info already out there. Even existing libraries you could use or learn from.