Foundation Classes, gp - Mark core types and methods constexpr/noexcept (#790)

Make gp basic types and operations more constexpr-friendly and noexcept:
- Mark gp::Resolution as constexpr.
- Add constexpr and/or noexcept to many constructors and small access/modifier methods.
- Convert several functions to constexpr where safe to allow compile-time evaluation.
- Initialize members via initializer lists for several GTrsf/GTrsf2d/Mat/etc constructors.
- Add noexcept to transformation/serialization helpers and small utilities where appropriate.

This enables better compile-time optimizations and safer noexcept semantics across TKMath gp primitives.
This commit is contained in:
Pasukhin Dmitry
2025-11-02 00:52:32 +00:00
committed by GitHub
parent 962a456f9b
commit b30cee0125
39 changed files with 657 additions and 562 deletions
@@ -1648,7 +1648,6 @@ void BRepFill_CompatibleWires::ComputeOrigin(const Standard_Boolean /*polar*/)
// reorganize the wires respecting orientation and origin
TopoDS_Vertex Vdeb, Vfin;
gp_Pnt Pdeb, Psuiv, PPs;
BRepTools_WireExplorer anExp;
@@ -1979,6 +1978,9 @@ void BRepFill_CompatibleWires::ComputeOrigin(const Standard_Boolean /*polar*/)
}
#ifdef OCCT_DEBUG_EFV
gp_Pnt PPs;
gp_Pnt Pdeb, Psuiv;
for (i = ideb; i <= myWork.Length(); i++)
{