Files
OCCT/src/Extrema/Extrema_FuncExtCS.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

117 lines
3.6 KiB
Plaintext

-- Created on: 1996-01-22
-- Created by: Laurent PAINNOT
-- Copyright (c) 1996-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.
private class FuncExtCS from Extrema
inherits FunctionSetWithDerivatives from math
---Purpose: Function to find extrema of the
-- distance between a curve and a surface.
uses POnSurf from Extrema,
POnCurv from Extrema,
SequenceOfPOnSurf from Extrema,
SequenceOfPOnCurv from Extrema,
SequenceOfReal from TColStd,
Pnt from gp,
Vector from math,
Matrix from math,
Curve from Adaptor3d,
CurvePtr from Adaptor3d,
Surface from Adaptor3d,
SurfacePtr from Adaptor3d
raises OutOfRange from Standard
is
Create returns FuncExtCS;
Create (C: Curve from Adaptor3d; S: Surface from Adaptor3d) returns FuncExtCS;
---Purpose:
Initialize(me: in out; C: Curve from Adaptor3d; S: Surface from Adaptor3d)
---Purpose: sets the field mysurf of the function.
is static;
------------------------------------------------------------
-- In all next methods, an exception is raised if the fields
-- were not initialized.
NbVariables (me) returns Integer;
NbEquations (me) returns Integer;
Value (me: in out; UV: Vector; F: out Vector) returns Boolean;
---Purpose: Calculation of Fi(U,V).
Derivatives (me: in out; UV: Vector; DF: out Matrix)
returns Boolean;
---Purpose: Calculation of Fi'(U,V).
Values (me: in out; UV: Vector; F: out Vector; DF: out Matrix)
returns Boolean;
---Purpose: Calculation of Fi(U,V) and Fi'(U,V).
GetStateNumber (me: in out) returns Integer
---Purpose: Save the found extremum.
is redefined;
NbExt (me) returns Integer;
---Purpose: Return the number of found extrema.
SquareDistance (me; N: Integer) returns Real
---Purpose: Return the value of the Nth distance.
raises OutOfRange;
-- if N < 1 or N > NbExt(me).
PointOnCurve (me; N: Integer) returns POnCurv
---Purpose: Returns the Nth extremum on C.
---C++: return const&
raises OutOfRange;
-- if N < 1 or N > NbExt(me).
PointOnSurface (me; N: Integer) returns POnSurf
---Purpose: Return the Nth extremum on S.
---C++: return const&
raises OutOfRange;
-- if N < 1 or N > NbExt(me).
Bidon1(me) returns SurfacePtr from Adaptor3d
is static private;
Bidon2(me) returns CurvePtr from Adaptor3d
is static private;
fields
myC : CurvePtr from Adaptor3d;
myS : SurfacePtr from Adaptor3d;
myP1 : Pnt from gp;
myP2 : Pnt from gp;
myt : Real; -- current value of U on C
myU : Real; -- current value of U on S
myV : Real; -- current value of V on S
mySqDist: SequenceOfReal from TColStd;
myPoint1: SequenceOfPOnCurv from Extrema;
myPoint2: SequenceOfPOnSurf from Extrema;
myCinit: Boolean;
mySinit: Boolean;
end FuncExtCS;