An Algorithm for Displaying a Class of Space-filling Curves