PNS-router: ignores NPTH-pads with pad<hole

Description

The PNS-router ignores NPTH-Pads with pad-diameter < hole-diameter (I use these footprints for simple mounting-holes). The router puts the track through the outer part of the hole and avoids only the inner real pad-element.

This could be observed with:

  • walkaround-mode
  • Shove-mode
  • the "highlight-collision-mode" behaves different:
    • if routing the track through the outer part of the hole: the displayed hole disappears
    • if routing the track through the inner pad-element: the pad-element is displayed green --> collision detected --> ok

Steps to reproduce

  1. open the attached example-project, open board
  2. set PNS-routermode: walkaround or shove
  3. activate route tool (hotkey X or icon on toolbar)
  4. start wire on R102-Pad2, try to lay a track through the 3 holes
  5. observe: its possible with the PNS-router to create a track crossing the two left holes

pns_router01

0195_bugreport_PNS-router.zip

KiCad Version

Application: KiCad PCB Editor (64-bit)

Version: (5.99.0-13095-g52e4e150cd), release build

Libraries:
	wxWidgets 3.1.5

Platform: Windows 10 (build 19043), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.1.5 (wchar_t,wx containers)
	Boost: 1.76.0
	OCC: 7.5.0
	Curl: 7.78.0-DEV
	ngspice: 35
	Compiler: Visual C++ 1929 without C++ ABI

Build settings:
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON