3D distance field generator.