1. A method performed by a product data management (PDM) data processing system, comprising: receiving a graphic model having a plurality of curves forming a curve chain; defining a distance threshold and angle threshold corresponding to the model; optimizing the curve chain under shape constraints; identifying a surface associated with the curve chain; optimizing the curve chain with under surface and distance constraints with respect to the identified surface; and storing the graphic model with the optimized curve chain.