File indexing completed on 2025-01-18 10:03:17
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _BRepTools_PurgeLocations_HeaderFile
0015 #define _BRepTools_PurgeLocations_HeaderFile
0016
0017 #include <Standard.hxx>
0018 #include <Standard_Transient.hxx>
0019 #include <BRepTools_ReShape.hxx>
0020 #include <TopTools_LocationSet.hxx>
0021
0022
0023
0024
0025
0026
0027 class BRepTools_PurgeLocations
0028 {
0029
0030 public:
0031
0032 Standard_EXPORT BRepTools_PurgeLocations();
0033
0034
0035 Standard_EXPORT Standard_Boolean Perform(const TopoDS_Shape& theShape);
0036
0037
0038 Standard_EXPORT const TopoDS_Shape& GetResult() const;
0039
0040 Standard_EXPORT Standard_Boolean IsDone() const;
0041
0042
0043 TopoDS_Shape ModifiedShape(const TopoDS_Shape& theInitShape) const;
0044
0045 private:
0046
0047 void AddShape(const TopoDS_Shape& theS);
0048 Standard_Boolean PurgeLocation(const TopoDS_Shape& theS, TopoDS_Shape& theRes);
0049
0050 Standard_Boolean myDone;
0051 TopoDS_Shape myShape;
0052 TopTools_IndexedMapOfShape myMapShapes;
0053 TopTools_LocationSet myLocations;
0054 TopTools_DataMapOfShapeShape myMapNewShapes;
0055 Handle(BRepTools_ReShape) myReShape;
0056
0057 };
0058
0059 #endif