-- Created on: 1993-03-17 -- Created by: Laurent BUCHARD -- Copyright (c) 1993-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. generic class Approx from ApproxInt ( ThePSurface as any; ThePSurfaceTool as any; TheISurface as any; TheISurfaceTool as any; TheWLine as Transient) uses MCurvesToBSpCurve from Approx, MultiBSpCurve from AppParCurves, Pnt from gp, Pnt2d from gp, Vec from gp, Vec2d from gp, ParametrizationType from Approx raises OutOfRange from Standard, NotDone from StdFail class ThePrmPrmSvSurfaces instantiates PrmPrmSvSurfaces from ApproxInt ( ThePSurface, ThePSurfaceTool, TheWLine); class TheImpPrmSvSurfaces instantiates ImpPrmSvSurfaces from ApproxInt ( ThePSurface, ThePSurfaceTool, TheISurface, TheISurfaceTool, TheWLine); class TheMultiLine instantiates MultiLine from ApproxInt ( TheWLine, SvSurfaces from ApproxInt); class TheMultiLineTool instantiates MultiLineTool from ApproxInt( TheMultiLine, SvSurfaces from ApproxInt); class TheComputeLine instantiates BSplComputeLine from Approx ( TheMultiLine, TheMultiLineTool); class TheComputeLineBezier instantiates ComputeLine from Approx ( TheMultiLine, TheMultiLineTool); is Create returns Approx from ApproxInt; Perform(me: in out; Surf1,Surf2 : ThePSurface; aLine : TheWLine; ApproxXYZ : Boolean from Standard = Standard_True; ApproxU1V1 : Boolean from Standard = Standard_True; ApproxU2V2 : Boolean from Standard = Standard_True; indicemin : Integer from Standard = 0; indicemax : Integer from Standard = 0) is static; Perform(me: in out; aLine : TheWLine; ApproxXYZ : Boolean from Standard = Standard_True; ApproxU1V1 : Boolean from Standard = Standard_True; ApproxU2V2 : Boolean from Standard = Standard_True; indicemin : Integer from Standard = 0; indicemax : Integer from Standard = 0) is static; SetParameters(me: in out; Tol3d : Real from Standard; Tol2d : Real from Standard; DegMin : Integer from Standard; DegMax : Integer from Standard; NbIterMax : Integer from Standard; ApproxWithTangency : Boolean from Standard = Standard_True; Parametrization : ParametrizationType from Approx = Approx_ChordLength) is static; SetParameters(me: in out; Tol3d : Real from Standard; Tol2d : Real from Standard; RelativeTol : Boolean from Standard; DegMin : Integer from Standard; DegMax : Integer from Standard; NbIterMax : Integer from Standard; NbPntMax : Integer from Standard; ApproxWithTangency : Boolean from Standard = Standard_True; Parametrization : ParametrizationType from Approx = Approx_ChordLength) is static; Perform(me:in out) is static; TolReached3d(me) returns Real from Standard is static; TolReached2d(me) returns Real from Standard is static; IsDone(me) returns Boolean from Standard is static; NbMultiCurves(me) returns Integer from Standard is static ; Value(me; Index: Integer from Standard) ---C++: return const & returns MultiBSpCurve from AppParCurves is static; ---- private methods Perform(me: in out ;Surf1 : ThePSurface; Surf2 : TheISurface; aLine : TheWLine; ApproxXYZ : Boolean from Standard; ApproxU1V1 : Boolean from Standard; ApproxU2V2 : Boolean from Standard; indicemin : Integer from Standard; indicemax : Integer from Standard) is static private; Perform(me: in out ;Surf1 : TheISurface; Surf2 : ThePSurface; aLine : TheWLine; ApproxXYZ : Boolean from Standard; ApproxU1V1 : Boolean from Standard; ApproxU2V2 : Boolean from Standard; indicemin : Integer from Standard; indicemax : Integer from Standard) is static private; UpdateTolReached(me: in out) is static private; fields myComputeLine : TheComputeLine from ApproxInt; myComputeLineBezier : TheComputeLineBezier from ApproxInt; myBezToBSpl : MCurvesToBSpCurve from Approx; myTolReached : Boolean from Standard; myApproxBez : Boolean from Standard; myWithTangency : Boolean from Standard; myTol3d : Real from Standard; myTol2d : Real from Standard; myRelativeTol : Boolean from Standard; myDegMin : Integer from Standard; myDegMax : Integer from Standard; myNbPntMax : Integer from Standard; myNbIterMax : Integer from Standard; myMinFactorXYZ : Real from Standard; myMinFactorUV : Real from Standard; myTolReached3d : Real from Standard; myTolReached2d : Real from Standard; end Approx;