File indexing completed on 2025-01-18 10:04:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _ShapeUpgrade_RemoveInternalWires_HeaderFile
0017 #define _ShapeUpgrade_RemoveInternalWires_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <TopoDS_Shape.hxx>
0023 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
0024 #include <TopTools_DataMapOfShapeListOfShape.hxx>
0025 #include <TopTools_SequenceOfShape.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <ShapeUpgrade_Tool.hxx>
0028 #include <ShapeExtend_Status.hxx>
0029
0030
0031 #ifdef Status
0032 #undef Status
0033 #endif
0034
0035 class ShapeUpgrade_RemoveInternalWires;
0036 DEFINE_STANDARD_HANDLE(ShapeUpgrade_RemoveInternalWires, ShapeUpgrade_Tool)
0037
0038
0039 class ShapeUpgrade_RemoveInternalWires : public ShapeUpgrade_Tool
0040 {
0041
0042 public:
0043
0044
0045
0046 Standard_EXPORT ShapeUpgrade_RemoveInternalWires();
0047
0048 Standard_EXPORT ShapeUpgrade_RemoveInternalWires(const TopoDS_Shape& theShape);
0049
0050
0051 Standard_EXPORT void Init (const TopoDS_Shape& theShape);
0052
0053
0054 Standard_EXPORT Standard_Boolean Perform();
0055
0056
0057
0058
0059 Standard_EXPORT Standard_Boolean Perform (const TopTools_SequenceOfShape& theSeqShapes);
0060
0061
0062 TopoDS_Shape GetResult() const;
0063
0064
0065 Standard_Real& MinArea();
0066
0067
0068
0069
0070 Standard_Boolean& RemoveFaceMode();
0071
0072
0073 const TopTools_SequenceOfShape& RemovedFaces() const;
0074
0075
0076 const TopTools_SequenceOfShape& RemovedWires() const;
0077
0078
0079
0080
0081
0082
0083
0084 Standard_Boolean Status (const ShapeExtend_Status theStatus) const;
0085
0086
0087
0088
0089 DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_RemoveInternalWires,ShapeUpgrade_Tool)
0090
0091 protected:
0092
0093
0094
0095 Standard_EXPORT void Clear();
0096
0097 Standard_Integer myStatus;
0098
0099
0100 private:
0101
0102
0103
0104 Standard_EXPORT void removeSmallWire (const TopoDS_Shape& theFace, const TopoDS_Shape& theWire);
0105
0106
0107
0108 Standard_EXPORT void removeSmallFaces();
0109
0110 TopoDS_Shape myShape;
0111 TopoDS_Shape myResult;
0112 Standard_Real myMinArea;
0113 Standard_Boolean myRemoveFacesMode;
0114 TopTools_IndexedDataMapOfShapeListOfShape myEdgeFaces;
0115 TopTools_DataMapOfShapeListOfShape myRemoveEdges;
0116 TopTools_SequenceOfShape myRemovedFaces;
0117 TopTools_SequenceOfShape myRemoveWires;
0118
0119
0120 };
0121
0122
0123 #include <ShapeUpgrade_RemoveInternalWires.lxx>
0124
0125
0126
0127
0128
0129 #endif