Warning, /include/opencascade/IntCurve_IntConicCurveGen.gxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1992-06-03
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1992-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 IntCurve_TheIntersector_hxx
0018
0019 #include <IntRes2d_Domain.hxx>
0020 #include <IntCurve_IConicTool.hxx>
0021
0022 //--------------------------------------------------------------------------------
0023 IntCurve_IntConicCurveGen::IntCurve_IntConicCurveGen (const gp_Circ2d& C,
0024 const IntRes2d_Domain& D1,
0025 const ThePCurve& PCurve,
0026 const IntRes2d_Domain& D2,
0027 const Standard_Real TolConf,
0028 const Standard_Real Tol) {
0029 if(!D1.IsClosed()) {
0030 IntRes2d_Domain D(D1);
0031 D.SetEquivalentParameters(D1.FirstParameter(),D1.FirstParameter()+M_PI+M_PI);
0032 Perform(IntCurve_IConicTool(C),D,PCurve,D2,TolConf,Tol);
0033 //-- throw Standard_ConstructionError("Domaine incorrect");
0034 }
0035 else {
0036 Perform(IntCurve_IConicTool(C),D1,PCurve,D2,TolConf,Tol);
0037 }
0038 }
0039 //--------------------------------------------------------------------------------
0040 IntCurve_IntConicCurveGen::IntCurve_IntConicCurveGen (const gp_Elips2d& E,
0041 const IntRes2d_Domain& D1,
0042 const ThePCurve& PCurve,
0043 const IntRes2d_Domain& D2,
0044 const Standard_Real TolConf,
0045 const Standard_Real Tol) {
0046 if(!D1.IsClosed()) {
0047 IntRes2d_Domain D(D1);
0048 D.SetEquivalentParameters(D1.FirstParameter(),D1.FirstParameter()+M_PI+M_PI);
0049 Perform(IntCurve_IConicTool(E),D,PCurve,D2,TolConf,Tol);
0050 //-- throw Standard_ConstructionError("Domaine incorrect");
0051 }
0052 else {
0053 Perform(IntCurve_IConicTool(E),D1,PCurve,D2,TolConf,Tol);
0054 }
0055 }
0056 //--------------------------------------------------------------------------------
0057 IntCurve_IntConicCurveGen::IntCurve_IntConicCurveGen (const gp_Parab2d& Prb,
0058 const IntRes2d_Domain& D1,
0059 const ThePCurve& PCurve,
0060 const IntRes2d_Domain& D2,
0061 const Standard_Real TolConf,
0062 const Standard_Real Tol) {
0063
0064 Perform(IntCurve_IConicTool(Prb),D1,PCurve,D2,TolConf,Tol);
0065 }
0066 //--------------------------------------------------------------------------------
0067 IntCurve_IntConicCurveGen::IntCurve_IntConicCurveGen (const gp_Hypr2d& H,
0068 const IntRes2d_Domain& D1,
0069 const ThePCurve& PCurve,
0070 const IntRes2d_Domain& D2,
0071 const Standard_Real TolConf,
0072 const Standard_Real Tol) {
0073
0074 Perform(IntCurve_IConicTool(H),D1,PCurve,D2,TolConf,Tol);
0075 }
0076 //--------------------------------------------------------------------------------
0077
0078