Back to index

salome-geom  6.5.0
GEOMAlgo_Tools.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 // File:        GEOMAlgo_Tools.hxx
00024 // Created:     Mon Dec  6 11:35:29 2004
00025 // Author:      Peter KURNEV
00026 
00027 #ifndef _GEOMAlgo_Tools_HeaderFile
00028 #define _GEOMAlgo_Tools_HeaderFile
00029 
00030 #include <Standard.hxx>
00031 #include <Standard_Macro.hxx>
00032 #include <Standard_Boolean.hxx>
00033 #include <Standard_Integer.hxx>
00034 #include <Standard_Real.hxx>
00035 #include <Handle_IntTools_Context.hxx>
00036 #include <Handle_Geom_Surface.hxx>
00037 #include <TopoDS_Shape.hxx>
00038 #include <GEOMAlgo_IndexedDataMapOfPassKeyShapeListOfShape.hxx>
00039 #include <IntTools_Context.hxx>
00040 #include <TopTools_ListOfShape.hxx>
00041 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
00042 #include <gp_Pnt.hxx>
00043 #include <TopoDS_Edge.hxx>
00044 #include <TopoDS_Face.hxx>
00045 #include <Geom_Surface.hxx>
00046 
00047 //=======================================================================
00048 //class    : GEOMAlgo_Tools
00049 //purpose  :
00050 //=======================================================================
00051 class GEOMAlgo_Tools
00052  {
00053 public:
00054   Standard_EXPORT
00055     static  Standard_Boolean IsCompositeShape(const TopoDS_Shape& aS) ;
00056 
00057   Standard_EXPORT
00058     static  Standard_Integer RefineSDShapes(GEOMAlgo_IndexedDataMapOfPassKeyShapeListOfShape& aMSD,
00059                                        const Standard_Real aTol,
00060                                        const Handle(IntTools_Context)& aCtx) ;
00061 
00062   Standard_EXPORT
00063     static  Standard_Integer FindSDShapes(const TopTools_ListOfShape& aLE,
00064                                      const Standard_Real aTol,
00065                                      TopTools_IndexedDataMapOfShapeListOfShape& aMEE,
00066                                      const Handle(IntTools_Context)& aCtx) ;
00067 
00068   Standard_EXPORT
00069     static  Standard_Integer FindSDShapes(const TopoDS_Shape& aE1,
00070                                      const TopTools_ListOfShape& aLE,
00071                                      const Standard_Real aTol,
00072                                      TopTools_ListOfShape& aLESD,
00073                                      const Handle(IntTools_Context)& aCtx) ;
00074 
00075   Standard_EXPORT
00076     static  Standard_Boolean ProjectPointOnShape(const gp_Pnt& aP1,
00077                                            const TopoDS_Shape& aS,gp_Pnt& aP2,
00078                                            const Handle(IntTools_Context)& aCtx) ;
00079 
00080   Standard_EXPORT
00081     static  void PointOnShape(const TopoDS_Shape& aS,
00082                            gp_Pnt& aP3D) ;
00083 
00084   Standard_EXPORT
00085     static  void PointOnEdge(const TopoDS_Edge& aE,
00086                           gp_Pnt& aP3D) ;
00087 
00088   Standard_EXPORT
00089     static  void PointOnEdge(const TopoDS_Edge& aE,
00090                           const Standard_Real aT,gp_Pnt& aP3D) ;
00091 
00092   Standard_EXPORT
00093     static  void PointOnFace(const TopoDS_Face& aF,
00094                           gp_Pnt& aP3D) ;
00095 
00096   Standard_EXPORT
00097     static  void PointOnFace(const TopoDS_Face& aF,
00098                           const Standard_Real aU,
00099                           const Standard_Real aV,
00100                           gp_Pnt& aP3D) ;
00101 
00102   Standard_EXPORT
00103     static  void RefinePCurveForEdgeOnFace(const TopoDS_Edge& aE,
00104                                       const TopoDS_Face& aF,
00105                                       const Standard_Real aU1,
00106                                       const Standard_Real aU2) ;
00107 
00108   Standard_EXPORT
00109     static  Standard_Boolean IsUPeriodic(const Handle(Geom_Surface)& aS) ;
00110 
00111   Standard_EXPORT
00112     static  Standard_Boolean CorrectWires(const TopoDS_Shape& aS) ;
00113 
00114   Standard_EXPORT
00115     static  Standard_Integer BuildPCurveForEdgeOnFace(const TopoDS_Edge& aE,
00116                                                 const TopoDS_Edge& aEold,
00117                                                 const TopoDS_Face& aF,
00118                                                 const Handle(IntTools_Context)& aCtx) ;
00119 
00120 };
00121 #endif