Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:11

0001 // Created on: 1994-03-07
0002 // Created by: Joelle CHAUVET
0003 // Copyright (c) 1994-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _BRepFill_Generator_HeaderFile
0018 #define _BRepFill_Generator_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <BRepFill_ThruSectionErrorStatus.hxx>
0024 #include <TopTools_SequenceOfShape.hxx>
0025 #include <TopoDS_Shell.hxx>
0026 #include <TopTools_DataMapOfShapeListOfShape.hxx>
0027 #include <TopTools_DataMapOfShapeShape.hxx>
0028 #include <TopTools_ListOfShape.hxx>
0029 #include <BRepTools_ReShape.hxx>
0030 class TopoDS_Wire;
0031 class TopoDS_Shape;
0032 
0033 //! Compute a topological surface ( a  shell) using
0034 //! generating wires. The face of the shell will be
0035 //! ruled surfaces passing by the wires.
0036 //! The wires must have the same number of edges.
0037 class BRepFill_Generator 
0038 {
0039 public:
0040 
0041   DEFINE_STANDARD_ALLOC
0042 
0043   
0044   Standard_EXPORT BRepFill_Generator();
0045   
0046   Standard_EXPORT void AddWire (const TopoDS_Wire& Wire);
0047   
0048   //! Compute the  shell.
0049   Standard_EXPORT void Perform();
0050   
0051     const TopoDS_Shell& Shell() const;
0052   
0053   //! Returns  all   the shapes created
0054   Standard_EXPORT const TopTools_DataMapOfShapeListOfShape& Generated() const;
0055   
0056   //! Returns   the  shapes  created  from   a  subshape
0057   //! <SSection>  of a  section.
0058   Standard_EXPORT const TopTools_ListOfShape& GeneratedShapes (const TopoDS_Shape& SSection) const;
0059 
0060   //! Returns a modified shape in the constructed shell,
0061   //! If shape is not changed (replaced) during operation => returns the same shape
0062   Standard_EXPORT TopoDS_Shape ResultShape (const TopoDS_Shape& theShape) const;
0063 
0064   //! Sets the mutable input state
0065   //! If true then the input profile can be modified 
0066   //! inside the operation. Default value is true.
0067   Standard_EXPORT void SetMutableInput(const Standard_Boolean theIsMutableInput);
0068     
0069   //! Returns the current mutable input state
0070   Standard_EXPORT Standard_Boolean IsMutableInput() const;
0071 
0072   //! Returns status of the operation
0073   BRepFill_ThruSectionErrorStatus GetStatus() const
0074   {
0075     return myStatus;
0076   }
0077 
0078 protected:
0079 
0080 private:
0081 
0082   TopTools_SequenceOfShape myWires;
0083   TopoDS_Shell myShell;
0084   TopTools_DataMapOfShapeListOfShape myMap;
0085   TopTools_DataMapOfShapeShape myOldNewShapes;
0086   BRepTools_ReShape myReshaper;
0087   Standard_Boolean myMutableInput;
0088   BRepFill_ThruSectionErrorStatus myStatus;
0089 
0090 };
0091 
0092 #include <BRepFill_Generator.lxx>
0093 
0094 #endif // _BRepFill_Generator_HeaderFile