fm_as_mesh_1d function

Convert objects to fm_segm