|
|
|||
File indexing completed on 2026-10-04 09:15:06
0001 // Created on: 1993-05-06 0002 // Created by: Jacques GOUSSARD 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 _IntPatch_PolyhedronTool_HeaderFile 0018 #define _IntPatch_PolyhedronTool_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <Bnd_Box.hxx> 0025 #include <NCollection_Array1.hxx> 0026 #include <NCollection_HArray1.hxx> 0027 #include <Standard_Integer.hxx> 0028 class Standard_OutOfRange; 0029 class Bnd_Box; 0030 class IntPatch_Polyhedron; 0031 class gp_Pnt; 0032 0033 //! Describe the signature of a polyhedral surface with 0034 //! only triangular facets and the necessary information 0035 //! to compute the interferences. 0036 class IntPatch_PolyhedronTool 0037 { 0038 public: 0039 DEFINE_STANDARD_ALLOC 0040 0041 //! Give the bounding box of the Polyhedron. 0042 static const Bnd_Box& Bounding(const IntPatch_Polyhedron& thePolyh); 0043 0044 //! Give the array of boxes. The box <n> corresponding 0045 //! to the triangle <n>. 0046 static const occ::handle<NCollection_HArray1<Bnd_Box>>& ComponentsBounding( 0047 const IntPatch_Polyhedron& thePolyh); 0048 0049 //! Give the tolerance of the polygon. 0050 static double DeflectionOverEstimation(const IntPatch_Polyhedron& thePolyh); 0051 0052 //! Give the number of triangles in this polyhedral surface. 0053 static int NbTriangles(const IntPatch_Polyhedron& thePolyh); 0054 0055 //! Give the indices of the 3 points of the triangle of 0056 //! address Index in the Polyhedron. 0057 static void Triangle(const IntPatch_Polyhedron& thePolyh, 0058 const int Index, 0059 int& P1, 0060 int& P2, 0061 int& P3); 0062 0063 //! Give the point of index i in the polyhedral surface. 0064 static const gp_Pnt& Point(const IntPatch_Polyhedron& thePolyh, const int Index); 0065 0066 //! Gives the address Tricon of the triangle connexe to 0067 //! the triangle of address Triang by the edge Pivot Pedge 0068 //! and the third point of this connexe triangle. When we 0069 //! are on a free edge TriCon==0 but the function return 0070 //! the value of the triangle in the other side of Pivot 0071 //! on the free edge. Used to turn around a vertex. 0072 static int TriConnex(const IntPatch_Polyhedron& thePolyh, 0073 const int Triang, 0074 const int Pivot, 0075 const int Pedge, 0076 int& TriCon, 0077 int& OtherP); 0078 }; 0079 0080 #include <IntPatch_PolyhedronTool.lxx> 0081 0082 #endif // _IntPatch_PolyhedronTool_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|