1 // Created on: 2012-08-06
2 // Created by: jgv@ROLEX
3 // Copyright (c) 2012-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _BRepOffsetAPI_MiddlePath_HeaderFile
17 #define _BRepOffsetAPI_MiddlePath_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <TopoDS_Shape.hxx>
24 #include <TopoDS_Wire.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <TopTools_MapOfShape.hxx>
27 #include <BRepOffsetAPI_SequenceOfSequenceOfShape.hxx>
28 #include <BRepBuilderAPI_MakeShape.hxx>
32 //! Describes functions to build a middle path of a
34 class BRepOffsetAPI_MiddlePath : public BRepBuilderAPI_MakeShape
41 //! General constructor.
42 //! StartShape and EndShape may be
44 Standard_EXPORT BRepOffsetAPI_MiddlePath(const TopoDS_Shape& aShape, const TopoDS_Shape& StartShape, const TopoDS_Shape& EndShape);
46 Standard_EXPORT virtual void Build() Standard_OVERRIDE;
61 TopoDS_Shape myInitialShape;
62 TopoDS_Wire myStartWire;
63 TopoDS_Wire myEndWire;
64 Standard_Boolean myClosedSection;
65 Standard_Boolean myClosedRing;
66 TopTools_MapOfShape myStartWireEdges;
67 TopTools_MapOfShape myEndWireEdges;
68 BRepOffsetAPI_SequenceOfSequenceOfShape myPaths;
79 #endif // _BRepOffsetAPI_MiddlePath_HeaderFile