Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-14 09:14:58

0001 // Created on: 1994-09-28
0002 // Created by: Marie Jose MARTZ
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 _IGESToBRep_BRepEntity_HeaderFile
0018 #define _IGESToBRep_BRepEntity_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IGESToBRep_CurveAndSurface.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <Message_ProgressRange.hxx>
0027 
0028 class TopoDS_Shape;
0029 class IGESData_IGESEntity;
0030 class TopoDS_Vertex;
0031 class IGESSolid_VertexList;
0032 class IGESSolid_EdgeList;
0033 class IGESSolid_Loop;
0034 class TopoDS_Face;
0035 class gp_Trsf2d;
0036 class IGESSolid_Face;
0037 class IGESSolid_Shell;
0038 class IGESSolid_ManifoldSolid;
0039 
0040 //! Provides methods to transfer BRep entities
0041 //! ( VertexList 502, EdgeList 504, Loop 508,
0042 //! Face 510, Shell 514, ManifoldSolid 186)
0043 //! from IGES to CASCADE.
0044 class IGESToBRep_BRepEntity : public IGESToBRep_CurveAndSurface
0045 {
0046 public:
0047   DEFINE_STANDARD_ALLOC
0048 
0049   //! Creates a tool BRepEntity ready to run, with
0050   //! epsilons set to 1.E-04, TheModeTopo to True, the
0051   //! optimization of the continuity to False.
0052   Standard_EXPORT IGESToBRep_BRepEntity();
0053 
0054   //! Creates a tool BRepEntity ready to run and sets its
0055   //! fields as CS's.
0056   Standard_EXPORT IGESToBRep_BRepEntity(const IGESToBRep_CurveAndSurface& CS);
0057 
0058   //! Creates a tool BRepEntity ready to run.
0059   Standard_EXPORT IGESToBRep_BRepEntity(const double eps,
0060                                         const double epsGeom,
0061                                         const double epsCoeff,
0062                                         const bool   mode,
0063                                         const bool   modeapprox,
0064                                         const bool   optimized);
0065 
0066   //! Transfer the BRepEntity" : Face, Shell or ManifoldSolid.
0067   Standard_EXPORT TopoDS_Shape
0068     TransferBRepEntity(const occ::handle<IGESData_IGESEntity>& start,
0069                        const Message_ProgressRange& theProgress = Message_ProgressRange());
0070 
0071   //! Transfer the entity number "index" of the VertexList "start"
0072   Standard_EXPORT TopoDS_Vertex TransferVertex(const occ::handle<IGESSolid_VertexList>& start,
0073                                                const int                                index);
0074 
0075   //! Transfer the entity number "index" of the EdgeList "start".
0076   Standard_EXPORT TopoDS_Shape TransferEdge(const occ::handle<IGESSolid_EdgeList>& start,
0077                                             const int                              index);
0078 
0079   //! Transfer the Loop Entity
0080   Standard_EXPORT TopoDS_Shape TransferLoop(const occ::handle<IGESSolid_Loop>& start,
0081                                             const TopoDS_Face&                 Face,
0082                                             const gp_Trsf2d&                   trans,
0083                                             const double                       uFact);
0084 
0085   //! Transfer the Face Entity
0086   Standard_EXPORT TopoDS_Shape TransferFace(const occ::handle<IGESSolid_Face>& start);
0087 
0088   //! Transfer the Shell Entity
0089   Standard_EXPORT TopoDS_Shape
0090     TransferShell(const occ::handle<IGESSolid_Shell>& start,
0091                   const Message_ProgressRange&        theProgress = Message_ProgressRange());
0092 
0093   //! Transfer the ManifoldSolid Entity
0094   Standard_EXPORT TopoDS_Shape
0095     TransferManifoldSolid(const occ::handle<IGESSolid_ManifoldSolid>& start,
0096                           const Message_ProgressRange& theProgress = Message_ProgressRange());
0097 };
0098 
0099 #endif // _IGESToBRep_BRepEntity_HeaderFile