3-D Fence making algorithm | ScratchStats