Historical Context & Motivation
Before the advent of computer-aided design, engineers and architects relied on T-squares, compasses, and French curves to draft geometric shapes and smooth curves on paper. Creating a precise regular polygon — a hexagonal bolt head, an octagonal pavilion floor plan — demanded meticulous compass-and-straightedge constructions, while producing a fair spline required bending a thin strip of wood or metal (the physical spline) through a series of weighted pins called ducks. Both tasks were time-consuming and error-prone when iterated, which made them prime candidates for automation once interactive graphics hardware matured in the 1970s and 1980s.
The overarching question that these tools answer is deceptively simple: how can a designer specify complex curved and multi-sided geometry quickly, precisely, and in a format that downstream processes — CNC machining, finite-element analysis, 3-D printing — can consume without ambiguity? Understanding the POLYGON and SPLINE commands in AutoCAD is the first step toward answering that question at a professional level.
Core Principles & Definitions
At their cores, polygons and splines address two complementary geometric needs. A polygon is a closed planar figure composed of equal-length straight segments meeting at equal interior angles — a regular n-gon. A spline is a piecewise polynomial curve that passes through or approximates a set of defining points with guaranteed smoothness at the junctions. Both are stored internally as lightweight parametric descriptions rather than discrete point clouds, which keeps file sizes small and precision high.
Inscribed vs. Circumscribed
Fit Points vs. Control Vertices
Degree and Continuity
Parametric Representation
Object Snaps & Grips
Visual Explanation — Polygon Construction
When you invoke the POLYGON command (alias POL), AutoCAD prompts for the number of sides, a center point, and whether the polygon should be inscribed in or circumscribed about a circle of a given radius. As the diagram shows, the inscribed option places each vertex on the circle, while the circumscribed option ensures that each edge is tangent to the circle at its midpoint. Internally, AutoCAD stores the result as a closed lightweight polyline, which means you can later explode it into individual line segments or use PEDIT to modify vertices.
Mathematical Framework
Polygon Geometry
Spline Mathematics — NURBS Curves
AutoCAD's SPLINE command produces Non-Uniform Rational B-Spline (NURBS) curves. A NURBS curve of degree d is evaluated from a set of n + 1 control points P₀ … Pₙ, associated weights w₀ … wₙ, and a non-decreasing knot vector U = {u₀, u₁, …, u_{n+d+1}}. The curve is defined by the rational basis function formula below.
Fit-Point vs. Control-Vertex Spline Modes
| Feature | Fit Point Mode | Control Vertex Mode |
|---|---|---|
| Curve passes through defining points? | Yes — exact interpolation | Only first and last (clamped) |
| Grip editing granularity | Move a fit point; AutoCAD recalculates the underlying CVs | Direct CV manipulation; more predictable local reshaping |
| Degree control | Default degree 3; can increase via Properties palette | Degree chosen at creation; 1 (linear) through 10 supported |
| Best use case | Tracing survey data, road centerlines, or known point sets | Freeform styling, aerodynamic profiles, industrial design |
| Conversion | Can convert to CV mode (Properties → Spline Method) | Can convert to fit-point mode if compatible |
Choosing between the two modes depends on the design intent. If you have a set of surveyed points and need the curve to honor each one — for instance, a topographic contour — fit-point mode is the natural choice. If you are sculpting a shape and care more about curvature aesthetics than exact point passage, control-vertex mode gives you more predictable, localized control. AutoCAD allows switching between the two representations after creation using the Properties palette or the SPLINEDIT command.
Worked Example — Polygon & Spline Workflow
Consider the task of drawing a regular octagonal flange plate with a smooth cam-profile cutout. We will create the octagon with the POLYGON command and the cam profile with the SPLINE command, then edit both.
POLYGON (or POL) and press Enter. At the prompt "Enter number of sides," type 8. Specify the center point, e.g., 0,0. Choose Inscribed in circle and enter a radius of 50 units.SPLINE and press Enter. At the first prompt, choose Fit (the default in most versions). Click five points inside the octagon that trace a cam lobe, for example: (−20,0), (−10,25), (10,30), (25,5), (15,−20). Press Enter to finish the spline.SPLINEDIT, select the spline, choose Fit data → Add, and click a location between two existing fit points.Strengths, Limitations & Practical Comparison
| Criterion | Polygon (POL) | Spline (SPL) |
|---|---|---|
| Geometry type | Closed lightweight polyline with equal-length segments | Open or closed NURBS curve |
| Smoothness | C⁰ continuity at vertices (tangent breaks) | Up to C^(d−1) continuity (no visible kinks for d ≥ 3) |
| Parametric flexibility | Fixed to n equal sides; only center, radius, orientation adjustable | Arbitrary shape via any number of points; degree adjustable |
| File size impact | Minimal — stored as a polyline with n vertices | Slightly larger — stores knot vector, CVs, weights |
| Downstream compatibility | Universally supported by all DXF/DWG consumers | Requires NURBS-aware parser; older plotters may tessellate |
| Typical applications | Bolt heads, nut profiles, tile patterns, structural columns | Road alignments, ship hulls, turbine blades, topographic contours |
Connection to Advanced CAD & Surface Modeling
The polygon and spline primitives introduced here are the 2-D precursors to far more powerful 3-D constructs. Understanding NURBS curves is essential because NURBS surfaces — used extensively in Autodesk Alias, CATIA, and Rhino — are essentially tensor products of two NURBS curves. Similarly, the regular polygon is the cross-section of prisms and prismatic extrusions, and AutoCAD's EXTRUDE and REVOLVE commands can sweep a 2-D polygon or spline profile into a solid body.
| Introductory Concept | Advanced Extension |
|---|---|
| 2-D POLYGON | 3-D prismatic solids via EXTRUDE; parametric polygon families in Dynamo/Grasshopper |
| 2-D SPLINE (fit-point) | Surface patches via LOFT/SWEEP; interpolating-spline surface networks in Alias |
| 2-D SPLINE (CV) | NURBS surface editing with CV lattices; G2/G3 continuity analysis in Class-A surfacing |
| SPLINEDIT | Surface trimming, blending, and stitching; T-spline topology editing |
For computer science students interested in computational geometry, the algorithms behind spline evaluation — the Cox–de Boor recursion, knot insertion via the Oslo algorithm, and degree elevation — are rich topics that intersect numerical analysis, approximation theory, and computer graphics. Understanding these fundamentals now will smooth the path into courses on geometric modeling, shader programming, and CAD kernel development.
Practice Problems
Lesson Summary
This lesson introduced two fundamental AutoCAD primitives for 2-D drafting. The POLYGON command creates regular n-sided figures by specifying a center, a radius, and whether the polygon is inscribed in or circumscribed about a circle. The result is stored as a closed lightweight polyline, editable via grips or PEDIT. The vertex coordinates follow the formula Vₖ = (cx + R cos(2πk/n + α), cy + R sin(2πk/n + α)), and each interior angle equals (n − 2) × 180° / n.
The SPLINE command produces NURBS curves in two modes: fit-point mode for exact interpolation through specified points, and control-vertex mode for localized shape sculpting via an approximating control polygon. The underlying mathematics — the Cox–de Boor recursion and the NURBS rational basis formulation — guarantee smoothness up to C^(d−1) continuity for a degree-d curve. Editing is performed through SPLINEDIT or grip manipulation, and mode conversion is available via the Properties palette. Together, polygons and splines equip the drafter with both the rigid regularity and the freeform fluidity required for professional 2-D geometry.