Warning, /include/opencascade/IntCurveSurface_PolyhedronTool.lxx is written in an unsupported language. File is not indexed.
0001 // Copyright (c) 1995-1999 Matra Datavision
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014
0015 #include ThePolyhedron_hxx
0016
0017 inline const Bnd_Box& IntCurveSurface_PolyhedronTool::Bounding(const ThePolyhedron& thePolyh)
0018 {
0019 return thePolyh.Bounding();
0020 }
0021
0022 inline const Handle(Bnd_HArray1OfBox)& IntCurveSurface_PolyhedronTool::ComponentsBounding(
0023 const ThePolyhedron& thePolyh)
0024 {
0025 return thePolyh.ComponentsBounding();
0026 }
0027
0028 inline Standard_Real IntCurveSurface_PolyhedronTool::DeflectionOverEstimation(
0029 const ThePolyhedron& thePolyh)
0030 {
0031 return thePolyh.DeflectionOverEstimation();
0032 }
0033
0034 inline Standard_Integer IntCurveSurface_PolyhedronTool::NbTriangles(const ThePolyhedron& thePolyh)
0035 {
0036 return thePolyh.NbTriangles();
0037 }
0038
0039 inline void IntCurveSurface_PolyhedronTool::Triangle(const ThePolyhedron& thePolyh,
0040 const Standard_Integer Index,
0041 Standard_Integer& P1,
0042 Standard_Integer& P2,
0043 Standard_Integer& P3)
0044 {
0045 thePolyh.Triangle(Index, P1, P2, P3);
0046 }
0047
0048 inline const gp_Pnt& IntCurveSurface_PolyhedronTool::Point(const ThePolyhedron& thePolyh,
0049 const Standard_Integer Index)
0050 {
0051 return thePolyh.Point(Index);
0052 }
0053
0054 inline Standard_Integer IntCurveSurface_PolyhedronTool::TriConnex(const ThePolyhedron& thePolyh,
0055 const Standard_Integer Triang,
0056 const Standard_Integer Pivot,
0057 const Standard_Integer Pedge,
0058 Standard_Integer& TriCon,
0059 Standard_Integer& OtherP)
0060 {
0061 return thePolyh.TriConnex(Triang, Pivot, Pedge, TriCon, OtherP);
0062 }
0063
0064 // Modified by Sergey KHROMOV - Fri Dec 7 13:47:07 2001 Begin
0065 //=======================================================================
0066 // function : IsOnBound
0067 // purpose : This method returns true if the edge based on points with
0068 // indices Index1 and Index2 represents a boundary edge.
0069 //=======================================================================
0070
0071 inline Standard_Boolean IntCurveSurface_PolyhedronTool::IsOnBound(const ThePolyhedron& thePolyh,
0072 const Standard_Integer Index1,
0073 const Standard_Integer Index2)
0074 {
0075 return thePolyh.IsOnBound(Index1, Index2);
0076 }
0077
0078 //=======================================================================
0079 // function : GetBorderDeflection
0080 // purpose : This method returns a border deflection of the polyhedron.
0081 //=======================================================================
0082
0083 inline Standard_Real IntCurveSurface_PolyhedronTool::GetBorderDeflection(
0084 const ThePolyhedron& thePolyh)
0085 {
0086 return thePolyh.GetBorderDeflection();
0087 }
0088
0089 // Modified by Sergey KHROMOV - Fri Dec 7 13:46:56 2001 End