File indexing completed on 2026-11-23 10:18:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _BRepOffsetAPI_MiddlePath_HeaderFile
0017 #define _BRepOffsetAPI_MiddlePath_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021
0022 #include <TopoDS_Shape.hxx>
0023 #include <TopoDS_Wire.hxx>
0024 #include <TopTools_ShapeMapHasher.hxx>
0025 #include <NCollection_Map.hxx>
0026 #include <NCollection_Sequence.hxx>
0027 #include <BRepBuilderAPI_MakeShape.hxx>
0028
0029
0030
0031 class BRepOffsetAPI_MiddlePath : public BRepBuilderAPI_MakeShape
0032 {
0033 public:
0034 DEFINE_STANDARD_ALLOC
0035
0036
0037
0038
0039 Standard_EXPORT BRepOffsetAPI_MiddlePath(const TopoDS_Shape& aShape,
0040 const TopoDS_Shape& StartShape,
0041 const TopoDS_Shape& EndShape);
0042
0043 Standard_EXPORT void Build(
0044 const Message_ProgressRange& theRange = Message_ProgressRange()) override;
0045
0046 private:
0047 TopoDS_Shape myInitialShape;
0048 TopoDS_Wire myStartWire;
0049 TopoDS_Wire myEndWire;
0050 bool myClosedSection;
0051 bool myClosedRing;
0052 NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> myStartWireEdges;
0053 NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> myEndWireEdges;
0054 NCollection_Sequence<NCollection_Sequence<TopoDS_Shape>> myPaths;
0055 };
0056
0057 #endif