]> OCCT Git - occt.git/commit
Foundation Classes - Modernize Bnd_B2 and Bnd_B3 (#838)
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Wed, 19 Nov 2025 11:34:04 +0000 (11:34 +0000)
committerGitHub <noreply@github.com>
Wed, 19 Nov 2025 11:34:04 +0000 (11:34 +0000)
commit851ac10c1215874027b840c19a78a5d9f0d6e10f
tree4b4146ebf7bf4821f6d78e191df61e3962940eb7
parentc479f6e0008e99c01cf2115b4e3e9529d17287b7
Foundation Classes - Modernize Bnd_B2 and Bnd_B3 (#838)

  - Replace C-style arrays with std::array for internal storage (myCenter and myHSize fields)
  - Add constexpr noexcept constructors for all variants (default, gp_XY/gp_XYZ, and std::array overloads)
  - Add public getter methods Center() and HSize() for direct read access to internal fields
  - Add setter overloads accepting std::array parameters
  - Mark appropriate methods as constexpr and noexcept for compile-time evaluation and optimization guarantees
  - Clean up boolean comparisons (remove explicit Standard_True/False checks)
src/FoundationClasses/TKMath/Bnd/Bnd_B2.hxx
src/FoundationClasses/TKMath/Bnd/Bnd_B3.hxx