Smooth Contours

This command has options for applying smoothing to polylines. Select the radio button for the smoothing option you want to apply. If you use Quadratic B-Spline type smoothing or Cubic B-Spline type smoothing, the Spline Segments AutoCAD system variable is relevant. The Curve Fit option provides the least smoothing, and the Cubic B-Spline option applies the most. Another effective way of smoothing is by creating the contours from rectangular meshes using various grid resolutions. Increase the smoothing by lowering the grid resolution and decrease by raising the grid resolution. The Bezier option provides an incremental type of smoothing. The Linetype Generation option turns on the Ltype Gen flag for the selected polylines. For more information on this option and the spline smoothing options, look up the PEDIT command in the AutoCAD Reference Manual. After selecting the OK button the routine will prompt for needed values.

Bezier smoothing is also embedded in many of the routines that create contours. Bezier smoothing applies the Bezier smoothing algorithm to polylines. This smoothing technique has two advantages over Spline or Curve Fit smoothing. One is that a Bezier smoothed polyline will pass through all of the vertices in the original polyline, while a Spline smoothed polyline only curves towards the original vertices and can pull away from vertices at sharp corners. Hitting all the original vertices can be an important feature in contour maps for maintaining the exact location of the contours. Another benefit of Bezier smoothing is the ability to control the looping and vertex factors. A higher looping factor increases the curving effect. Use this setting with some care, as too high a looping factor may cause nearby contour lines to cross after the smoothing has been applied.

Vertex reduction can also be applied along with the smoothing. This avoids having to create smoothed polylines with numerous vertices and then having to reduce these vertices in a second step. Be sure not to make the cutoff offset for reduction too high or you can negate or even reverse the smoothing effect. One disadvantage to Bezier smoothing is that it cannot be decurved like the other smoothing techniques. 

Prompts

Enter the looping factor (1-10) <5>: press Enter This determines the extent of curving. 1- least curvy, 10 - most curvy.
Enter the offset cutoff <0.05>: press Enter This value is the maximum shift distance for vertices reduction. A higher value removes more vertices.
Select polylines to smooth.
Select objects:
pick polylines

Before SmoothingAfter Smoothing
Pulldown Menu Location: Surface >> Modify Contours
Keyboard Command: Smooth
Prerequisite: Create Contour lines to smooth