Adapting fbi for 3d printing.