Open polyline: how to join lines so they close
"Lines that do not join," or an open polyline, means an outline whose ends do not meet cleanly, leaving a small gap at a corner or joint. This stops hatch from filling, offset from working, and a laser cutter from cutting, because none of them can see a closed shape. This guide shows how to find the gap and close the outline tightly in DXCAD2D Online.
Why the outline must close
Laser cutters, CNC machines and the hatch command all need a closed loop so they can tell "inside" from "outside." If there is a gap of even a fraction of a millimetre, the program treats the outline as open and cannot continue.
Step one: find the gap
The gap is often too small to see when zoomed out. To locate it:
- Zoom in to each corner and joint and check whether the two line ends sit exactly on top of each other.
- Press M and measure the distance between the two suspect ends. If it is not 0, there is a real gap.
- Watch the usual trouble spots: corners drawn to meet by eye, the start and end of a drawing session, and lines imported from a PDF or a scanned image.
How to close the outline
Pick the method that fits the gap.
1. Redraw with a polyline, snapping to the old ends
If there is one short gap, press PL and draw a new polyline, clicking so it snaps exactly onto both existing line ends. The ends meet precisely with no coordinate guessing.
2. Fillet with radius 0 to join two lines at a corner
The fillet command set to radius 0 extends or trims two lines so they meet at a single sharp corner. It suits corners where the lines overshoot or fall short slightly. Do it one corner at a time around the loop.
3. Trim the overshoot
If two lines overshoot (cross past the corner), use trim to cut off the parts that stick out, leaving only the segments that meet at the corner.
4. Close the loop back to the start
If you drew the outline with a polyline but the last point never returned to the start, drag the final end back and snap it to the first point to close the loop.
Try it right now — a free 2D CAD in your browser. Nothing to install, no sign-up.
Open DXCAD2D OnlinePrevent gaps, and check before you send
- Draw the outline with PL (polyline) in one continuous run instead of joining single lines corner to corner.
- Type real coordinates instead of clicking by eye, e.g.
0,0then100,0, so the ends line up exactly. - Turn on endpoint snapping whenever you continue from an existing line.
- Check with hatch: press hatch and click inside the shape. If it fills completely, the outline is closed; if it leaks out or will not fill, a gap remains — go back and close it.
Frequently asked questions
Why will hatch not fill
Usually because the outline is not closed — there is a gap at a corner or joint. Hatch needs a closed loop to find the boundary. Zoom in to find the gap, then close it with a zero-radius fillet or by redrawing the polyline.
How do I fix a polyline that will not close
Find the ends that do not meet by measuring the distance, then close them by snapping the ends together, filleting at radius 0, or dragging the last point back to the start to close the loop.
Why does the laser cutter refuse to cut my DXF
The most common cause is an outline that is not closed, so the machine cannot tell inside from outside. Check that every corner meets exactly before sending the file.
How do I know if a shape is closed
Try the hatch command and click inside the shape. If it fills exactly, the shape is closed. Or measure each joint and confirm it reads 0, which proves there is no gap.
Summary
Lines that do not join come from ends that do not meet exactly, which stops hatch filling and cutters reading the file. First zoom in and measure to find the gap, then close it with the method that fits — snap the ends together, fillet at radius 0, trim the overshoot, or close the loop back to the start. Finally check with hatch: if it fills completely, the shape is closed and ready to cut.