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
0018 inline const Bnd_Box& IntCurveSurface_PolyhedronTool::Bounding
0019 (const ThePolyhedron& thePolyh)
0020 {
0021 return thePolyh.Bounding();
0022 }
0023
0024 inline const Handle(Bnd_HArray1OfBox)& IntCurveSurface_PolyhedronTool::
0025 ComponentsBounding(const ThePolyhedron& thePolyh)
0026 {
0027 return thePolyh.ComponentsBounding();
0028 }
0029
0030 inline Standard_Real IntCurveSurface_PolyhedronTool::DeflectionOverEstimation
0031 (const ThePolyhedron& thePolyh)
0032 {
0033 return thePolyh.DeflectionOverEstimation();
0034 }
0035
0036 inline Standard_Integer IntCurveSurface_PolyhedronTool::NbTriangles
0037 (const ThePolyhedron& thePolyh)
0038 {
0039 return thePolyh.NbTriangles();
0040 }
0041
0042
0043
0044 inline void IntCurveSurface_PolyhedronTool::Triangle(const ThePolyhedron& thePolyh,
0045 const Standard_Integer Index,
0046 Standard_Integer& P1,
0047 Standard_Integer& P2,
0048 Standard_Integer& P3)
0049 {
0050 thePolyh.Triangle(Index, P1,P2,P3);
0051 }
0052
0053
0054 inline const gp_Pnt& IntCurveSurface_PolyhedronTool::Point
0055 (const ThePolyhedron& thePolyh,
0056 const Standard_Integer Index)
0057 {
0058 return thePolyh.Point(Index);
0059 }
0060
0061 inline Standard_Integer IntCurveSurface_PolyhedronTool::TriConnex
0062 (const ThePolyhedron& thePolyh,
0063 const Standard_Integer Triang,
0064 const Standard_Integer Pivot,
0065 const Standard_Integer Pedge,
0066 Standard_Integer& TriCon,
0067 Standard_Integer& OtherP)
0068 {
0069 return thePolyh.TriConnex(Triang, Pivot, Pedge, TriCon, OtherP);
0070 }
0071
0072 // Modified by Sergey KHROMOV - Fri Dec 7 13:47:07 2001 Begin
0073 //=======================================================================
0074 //function : IsOnBound
0075 //purpose : This method returns true if the edge based on points with
0076 // indices Index1 and Index2 represents a boundary edge.
0077 //=======================================================================
0078
0079 inline Standard_Boolean IntCurveSurface_PolyhedronTool::IsOnBound
0080 (const ThePolyhedron& thePolyh,
0081 const Standard_Integer Index1,
0082 const Standard_Integer Index2)
0083 {
0084 return thePolyh.IsOnBound(Index1, Index2);
0085 }
0086
0087 //=======================================================================
0088 //function : GetBorderDeflection
0089 //purpose : This method returns a border deflection of the polyhedron.
0090 //=======================================================================
0091
0092 inline Standard_Real IntCurveSurface_PolyhedronTool::GetBorderDeflection
0093 (const ThePolyhedron& thePolyh)
0094 {
0095 return thePolyh.GetBorderDeflection();
0096 }
0097
0098 // Modified by Sergey KHROMOV - Fri Dec 7 13:46:56 2001 End
0099