Raycasting

I want to build a World in 3d by raycasting but i still dont know how. I tried to understand the Example but still dont know how to do. Can someone help?