File indexing completed on 2026-11-25 10:09:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntSurf_LineOn2S_HeaderFile
0018 #define _IntSurf_LineOn2S_HeaderFile
0019
0020 #include <Standard.hxx>
0021
0022 #include <Bnd_Box.hxx>
0023 #include <Bnd_Box2d.hxx>
0024 #include <IntSurf_PntOn2S.hxx>
0025 #include <NCollection_Sequence.hxx>
0026 #include <Standard_Transient.hxx>
0027 #include <IntSurf_Allocator.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <Standard_Real.hxx>
0030 class IntSurf_PntOn2S;
0031
0032 class IntSurf_LineOn2S : public Standard_Transient
0033 {
0034
0035 public:
0036 Standard_EXPORT IntSurf_LineOn2S(const IntSurf_Allocator& theAllocator = nullptr);
0037
0038
0039 Standard_EXPORT void Add(const IntSurf_PntOn2S& P);
0040
0041
0042 int NbPoints() const;
0043
0044
0045 const IntSurf_PntOn2S& Value(const int Index) const;
0046
0047
0048 void Reverse();
0049
0050
0051
0052 Standard_EXPORT occ::handle<IntSurf_LineOn2S> Split(const int Index);
0053
0054
0055 void Value(const int Index, const IntSurf_PntOn2S& P);
0056
0057
0058 Standard_EXPORT void SetPoint(const int Index, const gp_Pnt& thePnt);
0059
0060
0061
0062 Standard_EXPORT void SetUV(const int Index, const bool OnFirst, const double U, const double V);
0063
0064 void Clear();
0065
0066 Standard_EXPORT void InsertBefore(const int I, const IntSurf_PntOn2S& P);
0067
0068 Standard_EXPORT void RemovePoint(const int I);
0069
0070
0071
0072 Standard_EXPORT bool IsOutSurf1Box(const gp_Pnt2d& theP);
0073
0074
0075
0076 Standard_EXPORT bool IsOutSurf2Box(const gp_Pnt2d& theP);
0077
0078
0079 Standard_EXPORT bool IsOutBox(const gp_Pnt& theP);
0080
0081 DEFINE_STANDARD_RTTIEXT(IntSurf_LineOn2S, Standard_Transient)
0082
0083 private:
0084 NCollection_Sequence<IntSurf_PntOn2S> mySeq;
0085 Bnd_Box2d myBuv1;
0086 Bnd_Box2d myBuv2;
0087 Bnd_Box myBxyz;
0088 };
0089
0090 #include <IntSurf_LineOn2S.lxx>
0091
0092 #endif