Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-21 08:28:47

0001 // Created on: 1993-04-07
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1993-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 _IntCurveSurface_ThePolyhedronToolOfHInter_HeaderFile
0018 #define _IntCurveSurface_ThePolyhedronToolOfHInter_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Bnd_HArray1OfBox.hxx>
0025 #include <Standard_Integer.hxx>
0026 class Standard_OutOfRange;
0027 class IntCurveSurface_ThePolyhedronOfHInter;
0028 class Bnd_Box;
0029 class gp_Pnt;
0030 
0031 class IntCurveSurface_ThePolyhedronToolOfHInter
0032 {
0033 public:
0034   DEFINE_STANDARD_ALLOC
0035 
0036   //! Give the bounding box of the PolyhedronTool.
0037   static const Bnd_Box& Bounding(const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0038 
0039   //! Give the array of boxes. The box <n> corresponding
0040   //! to the triangle <n>.
0041   static const Handle(Bnd_HArray1OfBox)& ComponentsBounding(
0042     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0043 
0044   //! Give the tolerance of the polygon.
0045   static Standard_Real DeflectionOverEstimation(
0046     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0047 
0048   //! Give the number of triangles in this polyhedral surface.
0049   static Standard_Integer NbTriangles(const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0050 
0051   //! Give the indices  of  the 3 points of  the triangle of
0052   //! address Index in the PolyhedronTool.
0053   static void Triangle(const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0054                        const Standard_Integer                       Index,
0055                        Standard_Integer&                            P1,
0056                        Standard_Integer&                            P2,
0057                        Standard_Integer&                            P3);
0058 
0059   //! Give the point of index i in the polyhedral surface.
0060   static const gp_Pnt& Point(const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0061                              const Standard_Integer                       Index);
0062 
0063   //! Give the  address Tricon of   the triangle connexe to
0064   //! the triangle of address Triang by the edge Pivot Pedge
0065   //! and the third point of this  connexe triangle. When we
0066   //! are on  a free edge TriCon==0  but the function return
0067   //! the value of  the triangle in the  other side of Pivot
0068   //! on the free edge.  Used to turn around a vertex.
0069   static Standard_Integer TriConnex(const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0070                                     const Standard_Integer                       Triang,
0071                                     const Standard_Integer                       Pivot,
0072                                     const Standard_Integer                       Pedge,
0073                                     Standard_Integer&                            TriCon,
0074                                     Standard_Integer&                            OtherP);
0075 
0076   //! This method returns true if the edge based on points with
0077   //! indices Index1 and Index2 represents a boundary edge. It is
0078   //! necessary to take into account the boundary deflection for
0079   //! this edge.
0080   static Standard_Boolean IsOnBound(const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0081                                     const Standard_Integer                       Index1,
0082                                     const Standard_Integer                       Index2);
0083 
0084   //! This method returns a border deflection of the polyhedron.
0085   static Standard_Real GetBorderDeflection(const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0086 
0087   Standard_EXPORT static void Dump(const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0088 
0089 protected:
0090 private:
0091 };
0092 
0093 #define ThePolyhedron IntCurveSurface_ThePolyhedronOfHInter
0094 #define ThePolyhedron_hxx <IntCurveSurface_ThePolyhedronOfHInter.hxx>
0095 #define IntCurveSurface_PolyhedronTool IntCurveSurface_ThePolyhedronToolOfHInter
0096 #define IntCurveSurface_PolyhedronTool_hxx <IntCurveSurface_ThePolyhedronToolOfHInter.hxx>
0097 
0098 #include <IntCurveSurface_PolyhedronTool.lxx>
0099 
0100 #undef ThePolyhedron
0101 #undef ThePolyhedron_hxx
0102 #undef IntCurveSurface_PolyhedronTool
0103 #undef IntCurveSurface_PolyhedronTool_hxx
0104 
0105 #endif // _IntCurveSurface_ThePolyhedronToolOfHInter_HeaderFile