[RhinoCommon] Geometry.GetBoundingBox() Bug?

I found I could not get a surface’s bounding box accurately, so I think it might be a bug.
Here is a GH file. Could you check it?



boundring_box_bug.gh (132.2 KB)

Looks just fine to me:

Perhaps you could run the Rhino command _SystemInfo and post the full result here so we know what we’re dealing with.

Here is the result.
I tried to open Rhino 8 with safe mode, but it still has the problem.

Rhino 8 SR20 2025-6-3 (Rhino 8, 8.20.25154.13001, Git hash:master @ 9c56e48aaab3834802c90f657a77687be5693a6f)
License type: Commercial, build 2025-06-03
License details: Stand-Alone

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 31GB)
.NET 8.0.16

Computer platform: LAPTOP  - Plugged in [97% battery remaining]

Non-hybrid graphics configuration.
  Primary display and OpenGL: AMD Radeon 780M Graphics (AMD) Memory: 1GB, Driver date: 4-28-2023 (M-D-Y). OpenGL Ver: (null)
    > Integrated accelerated graphics device with 4 adapter port(s)
        - Secondary monitor is laptop's integrated screen or built-in port
        - Windows Main Display attached to adapter port #1

OpenGL Settings
  Safe mode: On
  Use accelerated hardware modes: On
  GPU Tessellation is: On (but disabled due to other settings)
  Redraw scene when viewports are exposed: On
  Graphics level being used: OpenGL (null) (primary GPU's maximum)
  
  Anti-alias mode: 4x
  Mip Map Filtering: Linear
  Anisotropic Filtering Mode: High
  
  Vendor Name: Unknown
  Render version: (null)
  Shading Language: (null)
  Driver Date: 4-28-2023
  Driver Version: 31.0.14003.38003
  Maximum Texture size: n/a
  Z-Buffer depth: n/a
  Maximum Viewport size: 256 x 16843008
  Total Video Memory: 512 MB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
  C:\Program Files\Rhino 8\Plug-ins\Commands.rhp	"Commands"	8.20.25154.13001
  C:\Program Files\Rhino 8\Plug-ins\rdk.rhp	"Renderer Development Kit"	
  C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp	"RDK_EtoUI"	8.20.25154.13001
  C:\Program Files\Rhino 8\Plug-ins\IronPython\RhinoDLR_Python.rhp	"IronPython"	8.20.25154.13001
  C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GrasshopperPlugin.rhp	"Grasshopper"	8.20.25154.13001
  C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp	"Toolbars"	8.20.25154.13001

Similar (faulty) results here.

System info

Rhino 8 SR19 2025-5-12 (Rhino 8, 8.19.25132.01001, Git hash:master @ 57e3eb280b0f32cbe59f53a554be5e8ffa66fc36)
License type: Commercial, build 2025-05-12
License details: Cloud Zoo

Windows 11 (10.0.26100 SR0.0) or greater (Physical RAM: 63GB)
.NET Framework 4.8.9300.0

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 3060 (NVidia) Memory: 12GB, Driver date: 4-12-2025 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 576.02
> Accelerated graphics device with 4 adapter port(s)
- Secondary monitor attached to adapter port #0
- Windows Main Display attached to adapter port #1

Secondary graphics devices.
Intel(R) Graphics (Intel) Memory: 2GB, Driver date: 11-26-2024 (M-D-Y).
> Integrated graphics device with 4 adapter port(s)
- There are no monitors attached to this device!

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
GPU Tessellation is: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 4-12-2025
Driver Version: 32.0.15.7602
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 12 GB

Rhino plugins that do not ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Tibidabo\VisualARQ.rhp “VisualARQ”
C:\Users\Toni\AppData\Roaming\Grasshopper\Libraries\elefront421\ElefrontProperties.rhp “ElefrontProperties” 1.0.0.0
C:\Users\Toni\AppData\Roaming\McNeel\Rhinoceros\8.0\Plug-ins\Speckle.Connectors.Rhino8 (2153799A-0CEC-40DE-BC3A-01E5055222FF)\Speckle.Connectors.Rhino8.rhp “Speckle (Beta)” 3.2.0.0
C:\Program Files\Rhino 8\Plug-ins\Tibidabo\Tibidabo.rhp “Tibidabo”
C:\Users\Toni\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\ggRhinoIFC\24.9.6.8\ggRhinoIFC.rhp “ggRhinoIFC” 24.9.6.8

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.19.25132.1001
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\AnimationTools.rhp “AnimationTools”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.19.25132.1001
C:\Program Files\Rhino 8\Plug-ins\RhinoRender.rhp “Legacy Rhino Render”
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.19.25132.1001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.19.25132.1001
C:\Program Files\Rhino 8\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 8.19.25132.1001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.19.25132.1001
C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 8.19.25132.1001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.19.25132.1001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”

Edit:
Interestingly Box Corners are correct.

It works well on Rhino 6, both Rhino 7 and 8 exhibit this problem. The issue persists across five different machines, regardless of their configurations, matching the visual error in the uploaded screenshot.

I am on an internal 8.21 build, probably fixed there already.