1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-08 18:40:55 +03:00
occt/src/ApproxInt/ApproxInt_Approx.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

180 lines
6.4 KiB
Plaintext

-- Created on: 1993-03-17
-- Created by: Laurent BUCHARD
-- Copyright (c) 1993-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
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;