Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-13 09:16:53

0001 // Created on: 1994-03-22
0002 // Created by: Frederic UNTEREINER
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_HeaderFile
0018 #define _IGESToBRep_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Boolean.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <Standard_Transient.hxx>
0027 #include <NCollection_Sequence.hxx>
0028 #include <NCollection_HSequence.hxx>
0029 class IGESToBRep_AlgoContainer;
0030 class IGESData_IGESEntity;
0031 class TopoDS_Edge;
0032 class TopoDS_Face;
0033 
0034 //! Provides tools in order to transfer IGES entities
0035 //! to CAS.CADE.
0036 class IGESToBRep
0037 {
0038 public:
0039   DEFINE_STANDARD_ALLOC
0040 
0041   //! Creates and initializes default AlgoContainer.
0042   Standard_EXPORT static void Init();
0043 
0044   //! Sets default AlgoContainer
0045   Standard_EXPORT static void SetAlgoContainer(
0046     const occ::handle<IGESToBRep_AlgoContainer>& aContainer);
0047 
0048   //! Returns default AlgoContainer
0049   Standard_EXPORT static occ::handle<IGESToBRep_AlgoContainer> AlgoContainer();
0050 
0051   //! Return True if the IGESEntity can be transferred by
0052   //! TransferCurveAndSurface.
0053   //! ex: All IGESEntity from IGESGeom
0054   Standard_EXPORT static bool IsCurveAndSurface(const occ::handle<IGESData_IGESEntity>& start);
0055 
0056   //! Return True if the IGESEntity can be transferred by
0057   //! TransferBasicCurve.
0058   //! ex: CircularArc, ConicArc, Line, CopiousData,
0059   //! BSplineCurve, SplineCurve... from IGESGeom :
0060   //! 104,110,112,126
0061   Standard_EXPORT static bool IsBasicCurve(const occ::handle<IGESData_IGESEntity>& start);
0062 
0063   //! Return True if the IGESEntity can be transferred by
0064   //! TransferBasicSurface.
0065   //! ex: BSplineSurface, SplineSurface... from IGESGeom :
0066   //! 114,128
0067   Standard_EXPORT static bool IsBasicSurface(const occ::handle<IGESData_IGESEntity>& start);
0068 
0069   //! Return True if the IGESEntity can be transferred by
0070   //! TransferTopoCurve.
0071   //! ex: all Curves from IGESGeom :
0072   //! all basic curves,102,130,142,144
0073   Standard_EXPORT static bool IsTopoCurve(const occ::handle<IGESData_IGESEntity>& start);
0074 
0075   //! Return True if the IGESEntity can be transferred by
0076   //! TransferTopoSurface.
0077   //! ex: All Surfaces from IGESGeom :
0078   //! all basic surfaces,108,118,120,122,141,143
0079   Standard_EXPORT static bool IsTopoSurface(const occ::handle<IGESData_IGESEntity>& start);
0080 
0081   //! Return True if the IGESEntity can be transferred by
0082   //! TransferBRepEntity.
0083   //! ex: VertexList, EdgeList, Loop, Face, Shell,
0084   //! Manifold Solid BRep Object from IGESSolid :
0085   //! 502, 504, 508, 510, 514, 186.
0086   Standard_EXPORT static bool IsBRepEntity(const occ::handle<IGESData_IGESEntity>& start);
0087 
0088   Standard_EXPORT static int IGESCurveToSequenceOfIGESCurve(
0089     const occ::handle<IGESData_IGESEntity>&                              curve,
0090     occ::handle<NCollection_HSequence<occ::handle<Standard_Transient>>>& sequence);
0091 
0092   Standard_EXPORT static bool TransferPCurve(const TopoDS_Edge& fromedge,
0093                                              const TopoDS_Edge& toedge,
0094                                              const TopoDS_Face& face);
0095 };
0096 
0097 #endif // _IGESToBRep_HeaderFile