segment2D script