mpl_toolkits.mplot3d.art3d.
paths_to_3d_segments_with_codes
Convert paths from a collection object to 3D segments with path codes.