Missed traces while importing gerber

Issue #150 resolved
Noir47 created an issue


There is one missed trace on PCB plane when i have done import of BOTTOM gerber file, which was made in Diptrace.

FlatCAM version is 8.3. OS is Win 10 x64. Application runned with administrator privilege.

Screenshot with coordinates of missed trace and gerber file (it's already mirrored with Diptrace) are attached.

Thank you.

Comments (5)

  1. Noir47 reporter

    When i loaded an gerber file to FlatCAM v8.2 - everything is ok.

    Are there any major difference between those versions (i.e. better tool path optimization, more usable option, etc.)?

  2. Juan Pablo Caram repo owner

    This is the minimal Gerber causing the problem:


    There is a diagonally-drawn line and a circular flash. FlatCAM is not showing the line. Is the flash (D3) is removed, then the line is shown.

  3. Juan Pablo Caram repo owner

    Cause found: When a flash (D3) was encountered, the path drawn so far was discarded:

    # Flash
    elif current_operation_code == 3:
        # --- BUFFERED ---
        flash = Gerber.create_flash_geometry(Point([current_x, current_y]),
        if not flash.is_empty: poly_buffer.append(flash)
        path = [[current_x, current_y]]  # Reset path starting point
  4. Log in to comment