3D Export Result for Castellated Holes Not Work

Description

The 3D output result is different if we compare it with KiCad 3D viewer

If it was exported to 3D model the pads is not removed. castellated

Steps to reproduce

  1. test_castellated_holes.zip
  2. Open KiCad board
  3. File --> Export --> VRML --> OK
  4. Open 3D model output using FreeCAD or another CAD software or using https://3dviewer.net/

KiCad Version

Application: KiCad x64 on x64

Version: 7.0.2, release build

Libraries:
	wxWidgets 3.2.2
	FreeType 2.12.1
	HarfBuzz 6.0.0
	FontConfig 2.14.1

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

	wxWidgets: 3.2.2 (wchar_t,wx containers)
	Boost: 1.81.0
	OCC: 7.6.3
	Curl: 7.88.1-DEV
	ngspice: 40
	Compiler: Visual C++ 1934 without C++ ABI

Build settings:
	KICAD_SPICE=ON