0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / Intf / Intf_Interference.lxx
1 // Created on: 1991-06-24
2 // Created by: Didier PIFFAULT
3 // Copyright (c) -1999 Matra Datavision
4 // Copyright (c) 1991-1999 Matra Datavision
5 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 //
7 // This file is part of Open CASCADE Technology software library.
8 //
9 // This library is free software; you can redistribute it and/or modify it under
10 // the terms of the GNU Lesser General Public License version 2.1 as published
11 // by the Free Software Foundation, with special exception defined in the file
12 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
13 // distribution for complete text of the license and disclaimer of any warranty.
14 //
15 // Alternatively, this file may be used under the terms of Open CASCADE
16 // commercial license or contractual agreement.
17
18 //=======================================================================
19 // Return the number of sections points in an interference.
20 //=======================================================================
21
22 inline Standard_Integer Intf_Interference::NbSectionPoints () const
23 {
24   return mySPoins.Length();
25 }
26
27 //=======================================================================
28 // Give the section point of range Index in the interference.
29 //=======================================================================
30
31 inline const Intf_SectionPoint& Intf_Interference::PntValue (const Standard_Integer Index) const
32 {
33   return mySPoins(Index);
34 }
35
36 //=======================================================================
37 // Return the number of sections lines in an interference.
38 //=======================================================================
39
40 inline Standard_Integer Intf_Interference::NbSectionLines () const
41 {
42   return mySLines.Length();
43 }
44
45 //=======================================================================
46 // Give the section line of range Index in the interference.
47 //=======================================================================
48
49 inline const Intf_SectionLine& Intf_Interference::LineValue (const Standard_Integer Index) const
50 {
51   return mySLines(Index);
52 }
53
54 //=======================================================================
55 // Return the number of sections TangentZones in an interference.
56 //=======================================================================
57
58 inline Standard_Integer Intf_Interference::NbTangentZones () const
59 {
60   return myTZones.Length();
61 }
62
63 //=======================================================================
64 // Give the tangentzone of range Index in the interference.
65 //=======================================================================
66
67 inline const Intf_TangentZone& Intf_Interference::ZoneValue (const Standard_Integer Index) const
68 {
69   return myTZones(Index);
70 }
71
72 //=======================================================================
73 //function : GetTolerance
74 //purpose  : 
75 //=======================================================================
76
77 inline Standard_Real Intf_Interference::GetTolerance () const
78 {
79   return Tolerance;
80 }