File indexing completed on 2026-11-19 10:51:34
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ShapeAnalysis_FreeBoundsProperties_HeaderFile
0018 #define _ShapeAnalysis_FreeBoundsProperties_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <TopoDS_Shape.hxx>
0025 #include <ShapeAnalysis_FreeBoundData.hxx>
0026 #include <NCollection_Sequence.hxx>
0027 #include <NCollection_HSequence.hxx>
0028 #include <Standard_Integer.hxx>
0029 class ShapeAnalysis_FreeBoundData;
0030 class TopoDS_Wire;
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051 class ShapeAnalysis_FreeBoundsProperties
0052 {
0053 public:
0054 DEFINE_STANDARD_ALLOC
0055
0056
0057 Standard_EXPORT ShapeAnalysis_FreeBoundsProperties();
0058
0059
0060
0061 Standard_EXPORT ShapeAnalysis_FreeBoundsProperties(const TopoDS_Shape& shape,
0062 const double tolerance,
0063 const bool splitclosed = false,
0064 const bool splitopen = false);
0065
0066
0067
0068 Standard_EXPORT ShapeAnalysis_FreeBoundsProperties(const TopoDS_Shape& shape,
0069 const bool splitclosed = false,
0070 const bool splitopen = false);
0071
0072
0073
0074 Standard_EXPORT void Init(const TopoDS_Shape& shape,
0075 const double tolerance,
0076 const bool splitclosed = false,
0077 const bool splitopen = false);
0078
0079
0080
0081 Standard_EXPORT void Init(const TopoDS_Shape& shape,
0082 const bool splitclosed = false,
0083 const bool splitopen = false);
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094
0095 Standard_EXPORT bool Perform();
0096
0097
0098 bool IsLoaded() const;
0099
0100
0101 TopoDS_Shape Shape() const;
0102
0103
0104 double Tolerance() const;
0105
0106
0107 int NbFreeBounds() const;
0108
0109
0110 int NbClosedFreeBounds() const;
0111
0112
0113 int NbOpenFreeBounds() const;
0114
0115
0116 occ::handle<NCollection_HSequence<occ::handle<ShapeAnalysis_FreeBoundData>>> ClosedFreeBounds()
0117 const;
0118
0119
0120 occ::handle<NCollection_HSequence<occ::handle<ShapeAnalysis_FreeBoundData>>> OpenFreeBounds()
0121 const;
0122
0123
0124
0125 occ::handle<ShapeAnalysis_FreeBoundData> ClosedFreeBound(const int index) const;
0126
0127
0128
0129 occ::handle<ShapeAnalysis_FreeBoundData> OpenFreeBound(const int index) const;
0130
0131 Standard_EXPORT bool DispatchBounds();
0132
0133 Standard_EXPORT bool CheckContours(const double prec = 0.0);
0134
0135 Standard_EXPORT bool CheckNotches(const double prec = 0.0);
0136
0137 Standard_EXPORT bool CheckNotches(occ::handle<ShapeAnalysis_FreeBoundData>& fbData,
0138 const double prec = 0.0);
0139
0140 Standard_EXPORT bool CheckNotches(const TopoDS_Wire& freebound,
0141 const int num,
0142 TopoDS_Wire& notch,
0143 double& distMax,
0144 const double prec = 0.0);
0145
0146 Standard_EXPORT bool FillProperties(occ::handle<ShapeAnalysis_FreeBoundData>& fbData,
0147 const double prec = 0.0);
0148
0149 private:
0150 TopoDS_Shape myShape;
0151 double myTolerance;
0152 bool mySplitClosed;
0153 bool mySplitOpen;
0154 occ::handle<NCollection_HSequence<occ::handle<ShapeAnalysis_FreeBoundData>>> myClosedFreeBounds;
0155 occ::handle<NCollection_HSequence<occ::handle<ShapeAnalysis_FreeBoundData>>> myOpenFreeBounds;
0156 };
0157
0158 #include <ShapeAnalysis_FreeBoundsProperties.lxx>
0159
0160 #endif