Drawing fractal curves in 3D space