Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:05

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 
0041 //! Provides methods to transfer topologic surfaces entities
0042 //! from IGES to CASCADE.
0043 class IGESToBRep_TopoSurface  : public IGESToBRep_CurveAndSurface
0044 {
0045 public:
0046 
0047   DEFINE_STANDARD_ALLOC
0048 
0049   
0050   //! Creates  a tool TopoSurface  ready  to  run, with
0051   //! epsilons  set  to  1.E-04,  TheModeTopo  to  True,  the
0052   //! optimization of  the continuity to False.
0053   Standard_EXPORT IGESToBRep_TopoSurface();
0054   
0055   //! Creates a tool TopoSurface ready to run and sets its
0056   //! fields as CS's.
0057   Standard_EXPORT IGESToBRep_TopoSurface(const IGESToBRep_CurveAndSurface& CS);
0058   
0059   //! Creates a tool TopoSurface ready to run.
0060   Standard_EXPORT IGESToBRep_TopoSurface(const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized);
0061   
0062   Standard_EXPORT TopoDS_Shape TransferTopoSurface (const Handle(IGESData_IGESEntity)& start);
0063   
0064   Standard_EXPORT TopoDS_Shape TransferTopoBasicSurface (const Handle(IGESData_IGESEntity)& start);
0065   
0066   Standard_EXPORT TopoDS_Shape TransferRuledSurface (const Handle(IGESGeom_RuledSurface)& start);
0067   
0068   Standard_EXPORT TopoDS_Shape TransferSurfaceOfRevolution (const Handle(IGESGeom_SurfaceOfRevolution)& start);
0069   
0070   Standard_EXPORT TopoDS_Shape TransferTabulatedCylinder (const Handle(IGESGeom_TabulatedCylinder)& start);
0071   
0072   Standard_EXPORT TopoDS_Shape TransferOffsetSurface (const Handle(IGESGeom_OffsetSurface)& start);
0073   
0074   Standard_EXPORT TopoDS_Shape TransferTrimmedSurface (const Handle(IGESGeom_TrimmedSurface)& start);
0075   
0076   Standard_EXPORT TopoDS_Shape TransferBoundedSurface (const Handle(IGESGeom_BoundedSurface)& start);
0077   
0078   Standard_EXPORT TopoDS_Shape TransferPlane (const Handle(IGESGeom_Plane)& start);
0079   
0080   Standard_EXPORT TopoDS_Shape TransferPlaneSurface (const Handle(IGESSolid_PlaneSurface)& start);
0081   
0082   Standard_EXPORT TopoDS_Shape TransferPerforate (const Handle(IGESBasic_SingleParent)& start);
0083   
0084   Standard_EXPORT TopoDS_Shape ParamSurface (const Handle(IGESData_IGESEntity)& start, gp_Trsf2d& trans, Standard_Real& uFact);
0085 
0086 
0087 
0088 
0089 protected:
0090 
0091 
0092 
0093 
0094 
0095 private:
0096 
0097   
0098   Standard_EXPORT TopoDS_Shape TransferPlaneParts (const Handle(IGESGeom_Plane)& start, gp_Pln& gplan, gp_Trsf& locat, const Standard_Boolean first);
0099 
0100 
0101   Standard_Real TheULength;
0102 
0103 
0104 };
0105 
0106 
0107 
0108 
0109 
0110 
0111 
0112 #endif // _IGESToBRep_TopoSurface_HeaderFile