How SVG Path Direction Affects CNC Toolpaths

When converting Scalable Vector Graphics (SVG) files into Computer Numerical Control (CNC) cutting paths, path direction—also known as winding order—plays a critical role in how CAM software interprets geometry. The direction in which a vector path is drawn (clockwise or counter-clockwise) directly influences whether cuts are placed inside or outside the line, determines the use of climb versus conventional milling, and defines how nested shapes such as holes and islands are recognized. Understanding and managing path direction ensures accurate part dimensions, clean surface finishes, and proper tool engagement.

Inside and Outside Profile Offsets

CNC machines use the tool’s radius to offset the path so that the finished part matches the intended digital dimensions. CAM software often relies on path direction to determine which side of the line represents the “inside” or “outside” of a part.

If an SVG path has an inverted winding order, the CAM software may generate the toolpath on the wrong side of the vector. This error results in parts that are either undersized or oversized by exactly twice the tool’s diameter.

Climb Milling vs. Conventional Milling

Most standard CNC spindles rotate in a clockwise direction. Because of this fixed rotation, the direction the cutter travels along an SVG path determines the cutting mechanics:

Reversing an SVG vector flips the cut from climb to conventional milling (or vice versa), which can negatively impact part accuracy, edge quality, and tool lifespan.

Nested Geometry and Island Recognition

In complex designs featuring cutouts, text, or multiple nested parts, SVG winding rules (such as Non-Zero Winding and Even-Odd rules) define solid areas versus voids.

CAM processors generally expect outer perimeters to run in one direction (e.g., clockwise) and inner cutouts to run in the opposite direction (e.g., counter-clockwise). If an interior hole shares the same path direction as the outer perimeter, the software may fail to recognize it as a void, incorrectly treating it as a separate outer boundary or ignoring it entirely during pocketing operations.

Managing SVG Path Direction for CNC

While advanced CAM software packages include features to automatically detect boundaries or reverse vector directions, relying solely on automated correction can lead to inconsistencies. To avoid machining errors:

  1. Maintain Consistent Export Standards: Ensure design software exports closed vectors with outer contours running clockwise and inner cutouts running counter-clockwise.
  2. Inspect Toolpaths in CAM Simulation: Always verify the visual toolpath simulation to confirm that the cutter is offset to the correct side of the line and traveling in the intended direction before running the job on the CNC machine.