Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-18 09:22:18

0001 // Created on: 1998-10-06
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1998-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 _TopOpeBRepTool_GEOMETRY_HeaderFile
0018 #define _TopOpeBRepTool_GEOMETRY_HeaderFile
0019 
0020 #include <TopAbs_ShapeEnum.hxx>
0021 
0022 #include <TopAbs_Orientation.hxx>
0023 
0024 #include <TopAbs_State.hxx>
0025 
0026 #include <TopoDS_Shape.hxx>
0027 
0028 #include <TopTools_ShapeMapHasher.hxx>
0029 
0030 #include <NCollection_Map.hxx>
0031 
0032 #include <NCollection_List.hxx>
0033 
0034 #include <NCollection_IndexedMap.hxx>
0035 
0036 #include <NCollection_DataMap.hxx>
0037 
0038 #include <Standard_Integer.hxx>
0039 
0040 #include <NCollection_IndexedDataMap.hxx>
0041 
0042 #include <TopoDS_Face.hxx>
0043 
0044 #include <TopoDS_Edge.hxx>
0045 
0046 #include <TopoDS_Vertex.hxx>
0047 
0048 #include <TCollection_AsciiString.hxx>
0049 
0050 #include <GeomAbs_CurveType.hxx>
0051 #include <Geom2d_Curve.hxx>
0052 #include <Geom_Surface.hxx>
0053 #include <gp_Dir.hxx>
0054 #include <gp_Dir2d.hxx>
0055 #include <Bnd_Box2d.hxx>
0056 
0057 Standard_EXPORT occ::handle<Geom2d_Curve> BASISCURVE2D(const occ::handle<Geom2d_Curve>& C);
0058 // Standard_EXPORT bool FUN_tool_IsUViso(const occ::handle<Geom2d_Curve>&
0059 // PC,bool& isoU,bool& isoV,gp_Dir2d& d2d,gp_Pnt2d& O2d);
0060 Standard_EXPORT gp_Dir FUN_tool_dirC(const double par, const occ::handle<Geom_Curve>& C);
0061 Standard_EXPORT bool   FUN_tool_onapex(const gp_Pnt2d& p2d, const occ::handle<Geom_Surface>& S);
0062 Standard_EXPORT gp_Dir FUN_tool_ngS(const gp_Pnt2d& p2d, const occ::handle<Geom_Surface>& S);
0063 
0064 // ----------------------------------------------------------------------
0065 // curve type,surface type :
0066 // ----------------------------------------------------------------------
0067 Standard_EXPORT bool FUN_tool_line(const occ::handle<Geom_Curve>& C3d);
0068 Standard_EXPORT bool FUN_tool_line(const occ::handle<Geom2d_Curve>& C2d);
0069 Standard_EXPORT bool FUN_quadCT(const GeomAbs_CurveType& CT);
0070 Standard_EXPORT bool FUN_tool_quad(const occ::handle<Geom_Curve>& C3d);
0071 Standard_EXPORT bool FUN_tool_quad(const occ::handle<Geom2d_Curve>& pc);
0072 Standard_EXPORT bool FUN_tool_quad(const occ::handle<Geom_Surface>& S);
0073 Standard_EXPORT bool FUN_tool_closed(const occ::handle<Geom_Surface>& S,
0074                                      bool&                            uclosed,
0075                                      double&                          uperiod,
0076                                      bool&                            vclosed,
0077                                      double&                          vperiod);
0078 Standard_EXPORT void FUN_tool_UpdateBnd2d(Bnd_Box2d& B2d, const Bnd_Box2d& newB2d);
0079 
0080 // ----------------------------------------------------------------------
0081 // oriented vectors :
0082 // ----------------------------------------------------------------------
0083 Standard_EXPORT gp_Dir   FUN_tool_nCinsideS(const gp_Dir& tgC, const gp_Dir& ngS);
0084 Standard_EXPORT gp_Dir2d FUN_tool_nC2dINSIDES(const gp_Dir2d& tgC2d);
0085 
0086 #endif