File indexing completed on 2026-09-28 09:20:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef GeomBndLib_OffsetCurve2d_HeaderFile
0015 #define GeomBndLib_OffsetCurve2d_HeaderFile
0016
0017 #include <Bnd_Box2d.hxx>
0018 #include <Geom2d_OffsetCurve.hxx>
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021
0022
0023
0024 class GeomBndLib_OffsetCurve2d
0025 {
0026 public:
0027 DEFINE_STANDARD_ALLOC
0028
0029 GeomBndLib_OffsetCurve2d(const occ::handle<Geom2d_OffsetCurve>& theCurve)
0030 : myGeom(theCurve)
0031 {
0032 }
0033
0034 GeomBndLib_OffsetCurve2d(const GeomBndLib_OffsetCurve2d&) = delete;
0035 GeomBndLib_OffsetCurve2d& operator=(const GeomBndLib_OffsetCurve2d&) = delete;
0036 GeomBndLib_OffsetCurve2d(GeomBndLib_OffsetCurve2d&&) = delete;
0037 GeomBndLib_OffsetCurve2d& operator=(GeomBndLib_OffsetCurve2d&&) = delete;
0038
0039 const occ::handle<Geom2d_OffsetCurve>& Geometry() const { return myGeom; }
0040
0041
0042 [[nodiscard]] Bnd_Box2d Box(double theTol) const
0043 {
0044 return Box(myGeom->FirstParameter(), myGeom->LastParameter(), theTol);
0045 }
0046
0047
0048 [[nodiscard]] Standard_EXPORT Bnd_Box2d Box(double theU1, double theU2, double theTol) const;
0049
0050
0051 [[nodiscard]] Bnd_Box2d BoxOptimal(double theTol) const
0052 {
0053 return BoxOptimal(myGeom->FirstParameter(), myGeom->LastParameter(), theTol);
0054 }
0055
0056
0057 [[nodiscard]] Standard_EXPORT Bnd_Box2d BoxOptimal(double theU1,
0058 double theU2,
0059 double theTol) const;
0060
0061 private:
0062 occ::handle<Geom2d_OffsetCurve> myGeom;
0063 };
0064
0065 #endif