File indexing completed on 2026-09-18 09:21:02
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _MAT2d_Mat2d_HeaderFile
0018 #define _MAT2d_Mat2d_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Boolean.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <NCollection_DataMap.hxx>
0027 #include <MAT_Bisector.hxx>
0028 #include <Standard_Real.hxx>
0029 class MAT_ListOfEdge;
0030 class MAT_ListOfBisector;
0031 class MAT2d_Tool2d;
0032 class MAT_Bisector;
0033
0034
0035
0036 class MAT2d_Mat2d
0037 {
0038 public:
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042 Standard_EXPORT MAT2d_Mat2d(const bool IsOpenResult = false);
0043
0044 Standard_EXPORT ~MAT2d_Mat2d();
0045
0046
0047 Standard_EXPORT void CreateMat(MAT2d_Tool2d& aTool);
0048
0049
0050
0051 Standard_EXPORT void CreateMatOpen(MAT2d_Tool2d& aTool);
0052
0053
0054 Standard_EXPORT bool IsDone() const;
0055
0056
0057
0058 Standard_EXPORT void Init();
0059
0060
0061 Standard_EXPORT bool More() const;
0062
0063
0064 Standard_EXPORT void Next();
0065
0066
0067 Standard_EXPORT occ::handle<MAT_Bisector> Bisector() const;
0068
0069
0070
0071 Standard_EXPORT bool SemiInfinite() const;
0072
0073
0074 Standard_EXPORT int NumberOfBisectors() const;
0075
0076 private:
0077 Standard_EXPORT void LoadBisectorsToRemove(int& noofbisectorstoremove,
0078 const double distance1,
0079 const double distance2,
0080 const occ::handle<MAT_Bisector>& bisector1,
0081 const occ::handle<MAT_Bisector>& bisector2,
0082 const occ::handle<MAT_Bisector>& bisector3,
0083 const occ::handle<MAT_Bisector>& bisector4);
0084
0085 Standard_EXPORT void Intersect(MAT2d_Tool2d& atool,
0086 const int aside,
0087 int& noofbisectorstoremove,
0088 const occ::handle<MAT_Bisector>& bisector1,
0089 const occ::handle<MAT_Bisector>& bisector2);
0090
0091 bool myIsOpenResult;
0092 int thenumberofbisectors;
0093 int thenumberofedges;
0094 bool semiInfinite;
0095 occ::handle<MAT_ListOfEdge> theedgelist;
0096 occ::handle<MAT_ListOfEdge> RemovedEdgesList;
0097 NCollection_DataMap<int, int> typeofbisectortoremove;
0098 NCollection_DataMap<int, occ::handle<MAT_Bisector>> bisectoronetoremove;
0099 NCollection_DataMap<int, occ::handle<MAT_Bisector>> bisectortwotoremove;
0100 NCollection_DataMap<int, occ::handle<MAT_Bisector>> bisectormap;
0101 occ::handle<MAT_ListOfBisector> roots;
0102 bool isDone;
0103 };
0104
0105 #endif