Modeling and sewing of clothes in CAS