Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-25 09:13:24

0001 // Created on: 2012-08-06
0002 // Created by: jgv@ROLEX
0003 // Copyright (c) 2012-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
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_MapOfShape.hxx>
0025 #include <BRepOffsetAPI_SequenceOfSequenceOfShape.hxx>
0026 #include <BRepBuilderAPI_MakeShape.hxx>
0027 
0028 //! Describes functions to build a middle path of a
0029 //! pipe-like shape
0030 class BRepOffsetAPI_MiddlePath : public BRepBuilderAPI_MakeShape
0031 {
0032 public:
0033   DEFINE_STANDARD_ALLOC
0034 
0035   //! General constructor.
0036   //! StartShape and EndShape may be
0037   //! a wire or a face
0038   Standard_EXPORT BRepOffsetAPI_MiddlePath(const TopoDS_Shape& aShape,
0039                                            const TopoDS_Shape& StartShape,
0040                                            const TopoDS_Shape& EndShape);
0041 
0042   Standard_EXPORT virtual void Build(
0043     const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0044 
0045 protected:
0046 private:
0047   TopoDS_Shape                            myInitialShape;
0048   TopoDS_Wire                             myStartWire;
0049   TopoDS_Wire                             myEndWire;
0050   Standard_Boolean                        myClosedSection;
0051   Standard_Boolean                        myClosedRing;
0052   TopTools_MapOfShape                     myStartWireEdges;
0053   TopTools_MapOfShape                     myEndWireEdges;
0054   BRepOffsetAPI_SequenceOfSequenceOfShape myPaths;
0055 };
0056 
0057 #endif // _BRepOffsetAPI_MiddlePath_HeaderFile