1 // Created on: 1994-09-28
2 // Created by: Marie Jose MARTZ
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESToBRep_BRepEntity_HeaderFile
18 #define _IGESToBRep_BRepEntity_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <IGESToBRep_CurveAndSurface.hxx>
25 #include <Standard_Real.hxx>
26 #include <Standard_Boolean.hxx>
27 #include <Standard_Integer.hxx>
28 class IGESToBRep_CurveAndSurface;
30 class IGESData_IGESEntity;
32 class IGESSolid_VertexList;
33 class IGESSolid_EdgeList;
38 class IGESSolid_Shell;
39 class IGESSolid_ManifoldSolid;
42 //! Provides methods to transfer BRep entities
43 //! ( VertexList 502, EdgeList 504, Loop 508,
44 //! Face 510, Shell 514, ManifoldSolid 186)
45 //! from IGES to CASCADE.
46 class IGESToBRep_BRepEntity : public IGESToBRep_CurveAndSurface
53 //! Creates a tool BRepEntity ready to run, with
54 //! epsilons set to 1.E-04, TheModeTopo to True, the
55 //! optimization of the continuity to False.
56 Standard_EXPORT IGESToBRep_BRepEntity();
58 //! Creates a tool BRepEntity ready to run and sets its
60 Standard_EXPORT IGESToBRep_BRepEntity(const IGESToBRep_CurveAndSurface& CS);
62 //! Creates a tool BRepEntity ready to run.
63 Standard_EXPORT IGESToBRep_BRepEntity(const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized);
65 //! Transfer the BRepEntity" : Face, Shell or ManifoldSolid.
66 Standard_EXPORT TopoDS_Shape TransferBRepEntity (const Handle(IGESData_IGESEntity)& start);
68 //! Transfer the entity number "index" of the VertexList "start"
69 Standard_EXPORT TopoDS_Vertex TransferVertex (const Handle(IGESSolid_VertexList)& start, const Standard_Integer index);
71 //! Transfer the entity number "index" of the EdgeList "start".
72 Standard_EXPORT TopoDS_Shape TransferEdge (const Handle(IGESSolid_EdgeList)& start, const Standard_Integer index);
74 //! Transfer the Loop Entity
75 Standard_EXPORT TopoDS_Shape TransferLoop (const Handle(IGESSolid_Loop)& start, const TopoDS_Face& Face, const gp_Trsf2d& trans, const Standard_Real uFact);
77 //! Transfer the Face Entity
78 Standard_EXPORT TopoDS_Shape TransferFace (const Handle(IGESSolid_Face)& start);
80 //! Transfer the Shell Entity
81 Standard_EXPORT TopoDS_Shape TransferShell (const Handle(IGESSolid_Shell)& start);
83 //! Transfer the ManifoldSolid Entity
84 Standard_EXPORT TopoDS_Shape TransferManifoldSolid (const Handle(IGESSolid_ManifoldSolid)& start);
109 #endif // _IGESToBRep_BRepEntity_HeaderFile