Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-05 09:22:49

0001 // Created on: 1994-04-21
0002 // Created by: s:   Christophe GUYOT & 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_TopoSurface_HeaderFile
0018 #define _IGESToBRep_TopoSurface_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IGESToBRep_CurveAndSurface.hxx>
0025 class TopoDS_Shape;
0026 class IGESData_IGESEntity;
0027 class IGESGeom_RuledSurface;
0028 class IGESGeom_SurfaceOfRevolution;
0029 class IGESGeom_TabulatedCylinder;
0030 class IGESGeom_OffsetSurface;
0031 class IGESGeom_TrimmedSurface;
0032 class IGESGeom_BoundedSurface;
0033 class IGESGeom_Plane;
0034 class IGESSolid_PlaneSurface;
0035 class IGESBasic_SingleParent;
0036 class gp_Pln;
0037 class gp_Trsf;
0038 class gp_Trsf2d;
0039 
0040 //! Provides methods to transfer topologic surfaces entities
0041 //! from IGES to CASCADE.
0042 class IGESToBRep_TopoSurface : public IGESToBRep_CurveAndSurface
0043 {
0044 public:
0045   DEFINE_STANDARD_ALLOC
0046 
0047   //! Creates a tool TopoSurface ready to run, with
0048   //! epsilons set to 1.E-04, TheModeTopo to True, the
0049   //! optimization of the continuity to False.
0050   Standard_EXPORT IGESToBRep_TopoSurface();
0051 
0052   //! Creates a tool TopoSurface ready to run and sets its
0053   //! fields as CS's.
0054   Standard_EXPORT IGESToBRep_TopoSurface(const IGESToBRep_CurveAndSurface& CS);
0055 
0056   //! Creates a tool TopoSurface ready to run.
0057   Standard_EXPORT IGESToBRep_TopoSurface(const double eps,
0058                                          const double epsGeom,
0059                                          const double epsCoeff,
0060                                          const bool   mode,
0061                                          const bool   modeapprox,
0062                                          const bool   optimized);
0063 
0064   Standard_EXPORT TopoDS_Shape TransferTopoSurface(const occ::handle<IGESData_IGESEntity>& start);
0065 
0066   Standard_EXPORT TopoDS_Shape
0067     TransferTopoBasicSurface(const occ::handle<IGESData_IGESEntity>& start);
0068 
0069   Standard_EXPORT TopoDS_Shape
0070     TransferRuledSurface(const occ::handle<IGESGeom_RuledSurface>& start);
0071 
0072   Standard_EXPORT TopoDS_Shape
0073     TransferSurfaceOfRevolution(const occ::handle<IGESGeom_SurfaceOfRevolution>& start);
0074 
0075   Standard_EXPORT TopoDS_Shape
0076     TransferTabulatedCylinder(const occ::handle<IGESGeom_TabulatedCylinder>& start);
0077 
0078   Standard_EXPORT TopoDS_Shape
0079     TransferOffsetSurface(const occ::handle<IGESGeom_OffsetSurface>& start);
0080 
0081   Standard_EXPORT TopoDS_Shape
0082     TransferTrimmedSurface(const occ::handle<IGESGeom_TrimmedSurface>& start);
0083 
0084   Standard_EXPORT TopoDS_Shape
0085     TransferBoundedSurface(const occ::handle<IGESGeom_BoundedSurface>& start);
0086 
0087   Standard_EXPORT TopoDS_Shape TransferPlane(const occ::handle<IGESGeom_Plane>& start);
0088 
0089   Standard_EXPORT TopoDS_Shape
0090     TransferPlaneSurface(const occ::handle<IGESSolid_PlaneSurface>& start);
0091 
0092   Standard_EXPORT TopoDS_Shape TransferPerforate(const occ::handle<IGESBasic_SingleParent>& start);
0093 
0094   Standard_EXPORT TopoDS_Shape ParamSurface(const occ::handle<IGESData_IGESEntity>& start,
0095                                             gp_Trsf2d&                              trans,
0096                                             double&                                 uFact);
0097 
0098 private:
0099   Standard_EXPORT TopoDS_Shape TransferPlaneParts(const occ::handle<IGESGeom_Plane>& start,
0100                                                   gp_Pln&                            gplan,
0101                                                   gp_Trsf&                           locat,
0102                                                   const bool                         first);
0103 
0104   double TheULength;
0105 };
0106 
0107 #endif // _IGESToBRep_TopoSurface_HeaderFile