I am having getting an error message in KiCad Pcbnew 3D View: "Unable to find segment with endpoint of (xx.aa, yy.bb) Cannot determine board outline"
In order to avoid any gap issues between edge cut lines and/or corners, I didn’t draw the edge cuts free-hand by dragging the mouse cursor across the screen, instead I entered the X and Y coordinates for each four edge cut sides using the KiCad “Line segment properties” window separately as shown in the image below.
Since the error persisted, I redrew the edge cuts a few times even by varying the X/Y coordinates slightly (variation in 1 - 3 mm rage). Unfortunately the problem remains,
The strange point is that the error corordinates reported are different each time. The last error message I got shows the X/Y corordinates even outside the PCB area.
The 3D viewer pointed out the bad line segment with Dim’s of:
177.975, 78.35 [mm]
If you set the cursor to the bottom-left corner of the PCB edge cuts, hit the SpaceBar (to reset Zero ref) and mouse over to around 178,79, and zoom-in, you’ll see the problem… (bottom of the PCB panel shows Info).
There are More to find and delete/resolve… Use the 3D viewer to help identify the locations
Screenshot shows it… (look at the cross-hairs and see the Red line)
Hallo paulvdh and BlackCoffee,
Thanks a lot to both of you for your meticulous detective work in tracking down those “wild” segments.
I reproduced the solution applied by you and it worked at once. The 3D view is now as it should be. No more error messages. Wow!
Before reporting the problem in the forum, I had myself tried enlarged all corners and scanned along the edge cuts as well but didn’t find anything despite repeated attempts. Now I understand the reason, I was looking to close to the edge cuts. I should be more open minded in future and search more generously.
Thanks a lot to both of you for investing your valuable time in helping me.
This is a big help and a valuable lesson for me.
my advice is make use of FreeCAD’s KiCad StepUp plugin.
I typically draw a really crude board outline in KiCad then load the pcb file into freecad and properly constrain the pcb outline exactly where I want it before pushing the outline back to KiCad
I don’t see why drawing the bounding rectangle with the mouse should be a problem if you do it in one pass using the polygon, er, line tool and a coarse grid. After you have closed the rectangle you can test it right away. Rounded corners can be added later.