File indexing completed on 2026-09-10 09:16:21
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 class BRepTools_PurgeLocations
0026 {
0027
0028 public:
0029 Standard_EXPORT BRepTools_PurgeLocations();
0030
0031
0032 Standard_EXPORT Standard_Boolean Perform(const TopoDS_Shape& theShape);
0033
0034
0035 Standard_EXPORT const TopoDS_Shape& GetResult() const;
0036
0037 Standard_EXPORT Standard_Boolean IsDone() const;
0038
0039
0040 TopoDS_Shape ModifiedShape(const TopoDS_Shape& theInitShape) const;
0041
0042 private:
0043 void AddShape(const TopoDS_Shape& theS);
0044 Standard_Boolean PurgeLocation(const TopoDS_Shape& theS, TopoDS_Shape& theRes);
0045
0046 Standard_Boolean myDone;
0047 TopoDS_Shape myShape;
0048 TopTools_IndexedMapOfShape myMapShapes;
0049 TopTools_LocationSet myLocations;
0050 TopTools_DataMapOfShapeShape myMapNewShapes;
0051 Handle(BRepTools_ReShape) myReShape;
0052 };
0053
0054 #endif