Warning, /include/opencascade/IntCurve_IntCurveCurveGen.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1995-07-25
0002 // Created by: Modelistation
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016
0017 #include<Precision.hxx>
0018
0019 //----------------------------------------------------------------------
0020 inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen () :
0021 param1inf(-Precision::Infinite()),
0022 param1sup(Precision::Infinite()),
0023 param2inf(-Precision::Infinite()),
0024 param2sup(Precision::Infinite())
0025 {
0026 }
0027 //----------------------------------------------------------------------
0028 inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen(const TheCurve& C,
0029 const Standard_Real TolConf,
0030 const Standard_Real Tol) :
0031 param1inf(-Precision::Infinite()),
0032 param1sup(Precision::Infinite()),
0033 param2inf(-Precision::Infinite()),
0034 param2sup(Precision::Infinite())
0035 {
0036 Perform(C,TolConf,Tol);
0037 }
0038 //----------------------------------------------------------------------
0039 inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen(const TheCurve& C,
0040 const IntRes2d_Domain& D,
0041 const Standard_Real TolConf,
0042 const Standard_Real Tol) :
0043 param1inf(-Precision::Infinite()),
0044 param1sup(Precision::Infinite()),
0045 param2inf(-Precision::Infinite()),
0046 param2sup(Precision::Infinite())
0047 {
0048 Perform(C,D,TolConf,Tol);
0049 }
0050 //----------------------------------------------------------------------
0051 inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen(const TheCurve& C1,
0052 const TheCurve& C2,
0053 const Standard_Real TolConf,
0054 const Standard_Real Tol) :
0055 param1inf(-Precision::Infinite()),
0056 param1sup(Precision::Infinite()),
0057 param2inf(-Precision::Infinite()),
0058 param2sup(Precision::Infinite())
0059 {
0060 Perform(C1,C2,TolConf,Tol);
0061 }
0062 //----------------------------------------------------------------------
0063 inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen (const TheCurve& C1,
0064 const IntRes2d_Domain& D1,
0065 const TheCurve& C2,
0066 const Standard_Real TolConf,
0067 const Standard_Real Tol) :
0068 param1inf(-Precision::Infinite()),
0069 param1sup(Precision::Infinite()),
0070 param2inf(-Precision::Infinite()),
0071 param2sup(Precision::Infinite())
0072 {
0073 Perform(C1,D1,C2,TolConf,Tol);
0074 }
0075 //----------------------------------------------------------------------
0076 inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen (const TheCurve& C1,
0077 const TheCurve& C2,
0078 const IntRes2d_Domain& D2,
0079 const Standard_Real TolConf,
0080 const Standard_Real Tol) :
0081 param1inf(-Precision::Infinite()),
0082 param1sup(Precision::Infinite()),
0083 param2inf(-Precision::Infinite()),
0084 param2sup(Precision::Infinite())
0085 {
0086 Perform(C1,C2,D2,TolConf,Tol);
0087 }
0088 //----------------------------------------------------------------------
0089 inline IntCurve_IntCurveCurveGen::IntCurve_IntCurveCurveGen (const TheCurve& C1,
0090 const IntRes2d_Domain& D1,
0091 const TheCurve& C2,
0092 const IntRes2d_Domain& D2,
0093 const Standard_Real TolConf,
0094 const Standard_Real Tol) :
0095 param1inf(-Precision::Infinite()),
0096 param1sup(Precision::Infinite()),
0097 param2inf(-Precision::Infinite()),
0098 param2sup(Precision::Infinite())
0099 {
0100 Perform(C1,D1,C2,D2,TolConf,Tol);
0101 }
0102 //---------------------------------------------------------------------
0103 inline void IntCurve_IntCurveCurveGen::Perform(const TheCurve& C1,
0104 const TheCurve& C2,
0105 const Standard_Real TolConf,
0106 const Standard_Real Tol) {
0107 Standard_Real TolDomain = Tol;
0108 if(TolConf>TolDomain) { TolDomain = TolConf; }
0109 Perform(C1,ComputeDomain(C1,TolDomain),C2,ComputeDomain(C2,TolDomain),TolConf,Tol);
0110 }
0111 //----------------------------------------------------------------------
0112 inline void IntCurve_IntCurveCurveGen::Perform(const TheCurve& C1,
0113 const IntRes2d_Domain& D1,
0114 const TheCurve& C2,
0115 const Standard_Real TolConf,
0116 const Standard_Real Tol) {
0117 Standard_Real TolDomain = Tol;
0118 if(TolConf>TolDomain) { TolDomain = TolConf; }
0119 Perform(C1,D1,C2,ComputeDomain(C2,TolDomain),TolConf,Tol);
0120 }
0121 //----------------------------------------------------------------------
0122 inline void IntCurve_IntCurveCurveGen::Perform(const TheCurve& C1,
0123 const TheCurve& C2,
0124 const IntRes2d_Domain& D2,
0125 const Standard_Real TolConf,
0126 const Standard_Real Tol) {
0127 Standard_Real TolDomain = Tol;
0128 if(TolConf>TolDomain) { TolDomain = TolConf; }
0129 Perform(C1,ComputeDomain(C1,TolDomain),C2,D2,TolConf,Tol);
0130 }
0131
0132
0133