Files
OCCT/src/Approx/Approx_SameParameter.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

116 lines
3.5 KiB
Plaintext

-- Created on: 1995-06-02
-- Created by: Xavier BENVENISTE
-- Copyright (c) 1995-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.
class SameParameter from Approx
---Purpose: Approximation of a PCurve on a surface to make its
-- parameter be the same that the parameter of a given 3d
-- reference curve.
uses
HSurface from Adaptor3d,
HCurve from Adaptor3d,
HCurve2d from Adaptor2d,
Surface from Geom,
Curve from Geom,
Curve from Geom2d,
BSplineCurve from Geom2d
raises OutOfRange from Standard,
ConstructionError from Standard
is
Create (C3D : Curve from Geom;
C2D : Curve from Geom2d;
S : Surface from Geom;
Tol : Real)
returns SameParameter from Approx
---Purpose:
-- Warning: the C3D and C2D must have the same parametric domain.
--
raises ConstructionError;
Create (C3D : HCurve from Adaptor3d;
C2D : Curve from Geom2d;
S : HSurface from Adaptor3d;
Tol : Real)
returns SameParameter from Approx
---Purpose:
--Warning: the C3D and C2D must have the same parametric domain.
raises ConstructionError;
Create (C3D : HCurve from Adaptor3d;
C2D : HCurve2d from Adaptor2d;
S : HSurface from Adaptor3d;
Tol : Real)
returns SameParameter from Approx
---Purpose:
-- Warning: the C3D and C2D must have the same parametric domain.
--
raises ConstructionError;
Build (me : in out;
Tol : Real from Standard)
---Purpose: Compute the Pcurve (internal use only).
is static private;
IsDone(me) returns Boolean from Standard;
---C++: inline
TolReached(me) returns Real from Standard;
---C++: inline
IsSameParameter(me)
---C++: inline
---Purpose: Tells whether the original data had already the same
-- parameter up to the tolerance : in that case nothing
-- is done.
returns Boolean from Standard;
Curve2d(me)
---C++: inline
---Purpose: Returns the 2D curve that has the same parameter as
-- the 3D curve once evaluated on the surface up to the
-- specified tolerance
returns BSplineCurve from Geom2d;
fields
mySameParameter : Boolean from Standard;
myDone : Boolean from Standard;
myTolReached : Real from Standard;
myCurve2d : BSplineCurve from Geom2d;
myHCurve2d : HCurve2d from Adaptor2d;
myC3d : HCurve from Adaptor3d;
mySurf : HSurface from Adaptor3d;
end SameParameter;