Defining cloth pattern


I'm novice in jMe and want to ask how to define spring object if I have 2D cloth pattern?Cloth pattern is an array of 2D points that connected in special order.I figure out that ClothPatch could be defined only as rectangle.But if the form is more difficult?