Warning, file /include/opencascade/ShapeFix_FixSmallSolid.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _ShapeFix_FixSmallSolid_HeaderFile
0017 #define _ShapeFix_FixSmallSolid_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <Standard_Integer.hxx>
0023 #include <ShapeFix_Root.hxx>
0024 class TopoDS_Shape;
0025 class ShapeBuild_ReShape;
0026
0027
0028 class ShapeFix_FixSmallSolid : public ShapeFix_Root
0029 {
0030
0031 public:
0032
0033 Standard_EXPORT ShapeFix_FixSmallSolid();
0034
0035
0036
0037
0038
0039 Standard_EXPORT void SetFixMode(const int theMode);
0040
0041
0042 Standard_EXPORT void SetVolumeThreshold(const double theThreshold = -1.0);
0043
0044
0045 Standard_EXPORT void SetWidthFactorThreshold(const double theThreshold = -1.0);
0046
0047
0048 Standard_EXPORT TopoDS_Shape Remove(const TopoDS_Shape& theShape,
0049 const occ::handle<ShapeBuild_ReShape>& theContext) const;
0050
0051
0052 Standard_EXPORT TopoDS_Shape Merge(const TopoDS_Shape& theShape,
0053 const occ::handle<ShapeBuild_ReShape>& theContext) const;
0054
0055 DEFINE_STANDARD_RTTIEXT(ShapeFix_FixSmallSolid, ShapeFix_Root)
0056
0057 private:
0058 Standard_EXPORT bool IsThresholdsSet() const;
0059
0060 Standard_EXPORT bool IsSmall(const TopoDS_Shape& theSolid) const;
0061
0062 Standard_EXPORT bool IsUsedWidthFactorThreshold() const;
0063
0064 Standard_EXPORT bool IsUsedVolumeThreshold() const;
0065
0066 int myFixMode;
0067 double myVolumeThreshold;
0068 double myWidthFactorThreshold;
0069 };
0070
0071 #endif