Clearance/routing issue with rotated component and tight clearance

Description

The issue was observed with a component with a pad clearance of 0.2mm and a pad thickness of 0.3mm. The track width is set to 0.3mm, and the clearance to 0.2mm. When the component is orthogonal to the grid, or 0 degrees rotated, routing a 0.3mm track to the component's pads works. However, if the component is rotated once by 45 degrees, it is not possible to route a 0.3mm track from the pad. The track width needs to be reduced to 0.298mm to easily route the track.

Steps to reproduce

A sample project is attached.

  1. Set the track width to the predefined value of 0.3mm
  2. Try to route a track on the regular and rotated component
  3. Reduce the predefined size to 0.298mm
  4. Try to route a track on the regular and rotated component

ComponentRotation_Clearance.zip

KiCad Version

Application: KiCad x64 on x64

Version: 9.0.4-rc1-3-g9292bf6514, release build

Libraries:
	wxWidgets 3.2.8
	FreeType 2.13.3
	HarfBuzz 10.2.0
	FontConfig 2.15.0

Platform: Windows 11 (build 26100), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.2.8 (wchar_t,wx containers)
	Boost: 1.88.0
	OCC: 7.9.1
	Curl: 8.13.0-DEV
	ngspice: 44
	Compiler: Visual C++ 1942 without C++ ABI
	KICAD_IPC_API=ON

Locale: 
	Lang: en_CH
	Enc: UTF-8
	Num: 1’234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)