Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IntCurveSurface / IntCurveSurface_PolyhedronTool.lxx
CommitLineData
7fd59977 1
2#include ThePolyhedron_hxx
3
4
5inline const Bnd_Box& IntCurveSurface_PolyhedronTool::Bounding
6 (const ThePolyhedron& thePolyh)
7{
8 return thePolyh.Bounding();
9}
10
11inline const Handle(Bnd_HArray1OfBox)& IntCurveSurface_PolyhedronTool::
12 ComponentsBounding(const ThePolyhedron& thePolyh)
13{
14 return thePolyh.ComponentsBounding();
15}
16
17inline Standard_Real IntCurveSurface_PolyhedronTool::DeflectionOverEstimation
18 (const ThePolyhedron& thePolyh)
19{
20 return thePolyh.DeflectionOverEstimation();
21}
22
23inline Standard_Integer IntCurveSurface_PolyhedronTool::NbTriangles
24 (const ThePolyhedron& thePolyh)
25{
26 return thePolyh.NbTriangles();
27}
28
29
30
31inline void IntCurveSurface_PolyhedronTool::Triangle(const ThePolyhedron& thePolyh,
32 const Standard_Integer Index,
33 Standard_Integer& P1,
34 Standard_Integer& P2,
35 Standard_Integer& P3)
36{
37 thePolyh.Triangle(Index, P1,P2,P3);
38}
39
40
41inline const gp_Pnt& IntCurveSurface_PolyhedronTool::Point
42 (const ThePolyhedron& thePolyh,
43 const Standard_Integer Index)
44{
45 return thePolyh.Point(Index);
46}
47
48inline Standard_Integer IntCurveSurface_PolyhedronTool::TriConnex
49 (const ThePolyhedron& thePolyh,
50 const Standard_Integer Triang,
51 const Standard_Integer Pivot,
52 const Standard_Integer Pedge,
53 Standard_Integer& TriCon,
54 Standard_Integer& OtherP)
55{
56 return thePolyh.TriConnex(Triang, Pivot, Pedge, TriCon, OtherP);
57}
58
59// Modified by Sergey KHROMOV - Fri Dec 7 13:47:07 2001 Begin
60//=======================================================================
61//function : IsOnBound
62//purpose : This method returns true if the edge based on points with
63// indices Index1 and Index2 represents a boundary edge.
64//=======================================================================
65
66inline Standard_Boolean IntCurveSurface_PolyhedronTool::IsOnBound
67 (const ThePolyhedron& thePolyh,
68 const Standard_Integer Index1,
69 const Standard_Integer Index2)
70{
71 return thePolyh.IsOnBound(Index1, Index2);
72}
73
74//=======================================================================
75//function : GetBorderDeflection
76//purpose : This method returns a border deflection of the polyhedron.
77//=======================================================================
78
79inline Standard_Real IntCurveSurface_PolyhedronTool::GetBorderDeflection
80 (const ThePolyhedron& thePolyh)
81{
82 return thePolyh.GetBorderDeflection();
83}
84
85// Modified by Sergey KHROMOV - Fri Dec 7 13:46:56 2001 End
86