0024510: Remove unused local variables
[occt.git] / src / IntCurve / IntCurve_IntCurveCurveGen.lxx
CommitLineData
b311480e 1// Created on: 1995-07-25
2// Created by: Modelistation
3// Copyright (c) 1995-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
973c2be1 8// This library is free software; you can redistribute it and / or modify it
9// under the terms of the GNU Lesser General Public version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
17#include<Precision.hxx>
18
19//----------------------------------------------------------------------
20inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen () :
21param1inf(-Precision::Infinite()),
22param1sup(Precision::Infinite()),
23param2inf(-Precision::Infinite()),
24param2sup(Precision::Infinite())
25{
26}
27//----------------------------------------------------------------------
28inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen(const TheCurve& C,
29 const Standard_Real TolConf,
30 const Standard_Real Tol) :
31param1inf(-Precision::Infinite()),
32param1sup(Precision::Infinite()),
33param2inf(-Precision::Infinite()),
34param2sup(Precision::Infinite())
35{
36 Perform(C,TolConf,Tol);
37}
38//----------------------------------------------------------------------
39inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen(const TheCurve& C,
40 const IntRes2d_Domain& D,
41 const Standard_Real TolConf,
42 const Standard_Real Tol) :
43param1inf(-Precision::Infinite()),
44param1sup(Precision::Infinite()),
45param2inf(-Precision::Infinite()),
46param2sup(Precision::Infinite())
47{
48 Perform(C,D,TolConf,Tol);
49}
50//----------------------------------------------------------------------
51inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen(const TheCurve& C1,
52 const TheCurve& C2,
53 const Standard_Real TolConf,
54 const Standard_Real Tol) :
55param1inf(-Precision::Infinite()),
56param1sup(Precision::Infinite()),
57param2inf(-Precision::Infinite()),
58param2sup(Precision::Infinite())
59{
60 Perform(C1,C2,TolConf,Tol);
61}
62//----------------------------------------------------------------------
63inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen (const TheCurve& C1,
64 const IntRes2d_Domain& D1,
65 const TheCurve& C2,
66 const Standard_Real TolConf,
67 const Standard_Real Tol) :
68param1inf(-Precision::Infinite()),
69param1sup(Precision::Infinite()),
70param2inf(-Precision::Infinite()),
71param2sup(Precision::Infinite())
72{
73 Perform(C1,D1,C2,TolConf,Tol);
74}
75//----------------------------------------------------------------------
76inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen (const TheCurve& C1,
77 const TheCurve& C2,
78 const IntRes2d_Domain& D2,
79 const Standard_Real TolConf,
80 const Standard_Real Tol) :
81param1inf(-Precision::Infinite()),
82param1sup(Precision::Infinite()),
83param2inf(-Precision::Infinite()),
84param2sup(Precision::Infinite())
85{
86 Perform(C1,C2,D2,TolConf,Tol);
87}
88//----------------------------------------------------------------------
89inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen (const TheCurve& C1,
90 const IntRes2d_Domain& D1,
91 const TheCurve& C2,
92 const IntRes2d_Domain& D2,
93 const Standard_Real TolConf,
94 const Standard_Real Tol) :
95param1inf(-Precision::Infinite()),
96param1sup(Precision::Infinite()),
97param2inf(-Precision::Infinite()),
98param2sup(Precision::Infinite())
99{
100 Perform(C1,D1,C2,D2,TolConf,Tol);
101}
102//---------------------------------------------------------------------
103inline void IntCurve_IntCurveCurveGen::Perform(const TheCurve& C1,
104 const TheCurve& C2,
105 const Standard_Real TolConf,
106 const Standard_Real Tol) {
107 Standard_Real TolDomain = Tol;
108 if(TolConf>TolDomain) { TolDomain = TolConf; }
109 Perform(C1,ComputeDomain(C1,TolDomain),C2,ComputeDomain(C2,TolDomain),TolConf,Tol);
110}
111//----------------------------------------------------------------------
112inline void IntCurve_IntCurveCurveGen::Perform(const TheCurve& C1,
113 const IntRes2d_Domain& D1,
114 const TheCurve& C2,
115 const Standard_Real TolConf,
116 const Standard_Real Tol) {
117 Standard_Real TolDomain = Tol;
118 if(TolConf>TolDomain) { TolDomain = TolConf; }
119 Perform(C1,D1,C2,ComputeDomain(C2,TolDomain),TolConf,Tol);
120}
121//----------------------------------------------------------------------
122inline void IntCurve_IntCurveCurveGen::Perform(const TheCurve& C1,
123 const TheCurve& C2,
124 const IntRes2d_Domain& D2,
125 const Standard_Real TolConf,
126 const Standard_Real Tol) {
127 Standard_Real TolDomain = Tol;
128 if(TolConf>TolDomain) { TolDomain = TolConf; }
129 Perform(C1,ComputeDomain(C1,TolDomain),C2,D2,TolConf,Tol);
130}
131
132
133