also you can,
draw centerline (use one polyline leaving one point of the star open like in your figure), then offset the centerline inside and offset outside then you can arrive at your figure. It only works for open polylines with start and endpoints not coincident.