Nice Fit - sheet nesting software

← Blog

Why Won't My CNC Software Recognize My Closed Shapes?

If your CNC or nesting software will not recognize a shape as closed, the outline usually contains a small geometry problem. Common causes include endpoint g…

If your CNC or nesting software will not recognize a shape as closed, the outline usually contains a small geometry problem. Common causes include endpoint gaps, overlapping entities, duplicate lines, self-intersections, inconsistent Z coordinates, or unsupported CAD objects.

A contour can look closed on screen while still being mathematically open. CNC software must identify an unbroken boundary before it can reliably classify a part, distinguish holes from exterior profiles, calculate toolpaths, or nest the part on a sheet. The following checks will help you find and repair the problem before exporting your DXF.

What a closed shape means in CNC software

A closed shape is a continuous contour whose final endpoint connects exactly to its first endpoint. Depending on the CAD application and file format, it may be represented as one closed polyline or as multiple lines and arcs joined endpoint to endpoint.

Visual contact is not enough. Two endpoints may appear connected at a normal zoom level but remain separated by a fraction of a millimeter or inch. They may also overlap without sharing the same endpoint. To CNC software, those conditions do not form a valid closed boundary.

Closed contours matter because downstream software uses them to determine:

  • The exterior boundary of each part
  • Interior holes, slots, and cutouts
  • Part area and dimensions
  • Inside-versus-outside toolpath placement
  • Whether a part can be nested without overlapping another part

Nice Fit imports 2D DXF parts, arranges them on sheets, and exports nested DXF files for downstream CNC cutting. It therefore needs valid 2D part boundaries in the source DXF. Toolpath creation and machining settings remain the responsibility of your CAM or CNC software.

Check for gaps between endpoints

Tiny endpoint gaps are the most common reason a CNC contour is reported as open. They often appear after trimming, extending, offsetting, scaling, or converting geometry between file formats.

Zoom closely into every corner and transition between lines and arcs. If your CAD software provides endpoint markers, object snaps, or a gap-checking command, use them rather than relying on sight alone.

To repair a gap:

  1. Enable endpoint object snapping.
  2. Trim or extend the affected entities until their endpoints coincide.
  3. Use a join command to combine connected entities where appropriate.
  4. Confirm that the resulting polyline reports itself as closed.

Be careful with automatic join tolerances. A large tolerance can close the intended gap, but it can also connect nearby geometry that should remain separate. Use the smallest practical tolerance and inspect the result.

Remove duplicate and overlapping geometry

Duplicate lines can occupy exactly the same location, making them difficult to see. Partial overlaps are also common after copying geometry, importing a DXF, or repeatedly editing an outline.

These entities can confuse contour detection because the software encounters multiple possible paths along the same boundary. They may also produce duplicate toolpaths or cause a machine to cut the same edge twice.

Use your CAD application’s duplicate-removal, overkill, or geometry-cleanup command if one is available. Then inspect the outline for:

  • Identical entities stacked on top of each other
  • Collinear lines that overlap partially
  • Short fragments left behind after trimming
  • Repeated arcs or circles

A useful manual test is to select and delete a suspicious entity. If an identical line remains visible, undo the deletion and remove the duplicate deliberately.

Find self-intersections and branching contours

A closed contour should follow one unambiguous path around the boundary. A self-intersection occurs when the contour crosses itself, as in a figure-eight shape. A branch occurs when three or more segments meet at one point.

Both conditions can prevent software from determining which region represents the part. They may be introduced by offset operations, aggressive corner fillets, or untrimmed construction geometry.

Inspect narrow corners, decorative profiles, and areas where curves meet. Trim crossing entities so the boundary encloses one clear region. If the design intentionally contains multiple regions, represent them as separate closed contours rather than one branching path.

Convert unsupported objects into standard DXF geometry

Not every object that looks like a line or curve is stored as basic 2D geometry. Splines, ellipses, text, hatches, blocks, regions, proxy objects, and application-specific entities may not be interpreted consistently by CNC software.

When compatibility is uncertain, convert the required cutting geometry into commonly supported entities such as:

Nest your next sheet with Nice Fit. free 7-day Windows trial.