1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

Coding - Geom package Copy optimisation (#645)

- Adds copy constructors for 9 geometry classes (Bezier/BSpline curves and surfaces, offset curves and surfaces in both 2D and 3D)
- Updates Copy() methods to use the new copy constructors instead of recreating objects through standard constructors
- Includes comprehensive test coverage for all new copy constructors
This commit is contained in:
Pasukhin Dmitry
2025-07-26 17:38:46 +01:00
committed by GitHub
parent 1434cd7da3
commit 0eb86fb05a
29 changed files with 1407 additions and 70 deletions

View File

@@ -127,6 +127,10 @@ public:
//! U or V.
Standard_EXPORT Geom_BezierSurface(const TColgp_Array2OfPnt& SurfacePoles);
//! Copy constructor for optimized copying without validation.
//! @param[in] theOther the Bezier surface to copy from
Standard_EXPORT Geom_BezierSurface(const Geom_BezierSurface& theOther);
//! ---Purpose
//! Creates a rational Bezier surface with a set of poles and a
//! set of weights.