mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-01 10:26:12 +03:00
Mostly duplicated comments were removed and missing ones were moved into dedicated class CDL files. Some more duplicated comments were removed from CDL files. Correction of merge
75 lines
2.5 KiB
Plaintext
75 lines
2.5 KiB
Plaintext
-- Created on: 1997-05-28
|
|
-- Created by: Xavier BENVENISTE
|
|
-- Copyright (c) 1997-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 Check2dBSplineCurve from GeomLib
|
|
|
|
---Purpose: Checks for the end tangents : wether or not those
|
|
-- are reversed
|
|
|
|
uses
|
|
Pnt2d from gp,
|
|
BSplineCurve from Geom2d
|
|
|
|
raises
|
|
|
|
NotDone from StdFail,
|
|
OutOfRange from Standard
|
|
|
|
is
|
|
|
|
Create( Curve : BSplineCurve from Geom2d ;
|
|
Tolerance : Real from Standard ;
|
|
AngularTolerance : Real from Standard)
|
|
returns Check2dBSplineCurve from GeomLib;
|
|
|
|
IsDone(me) returns Boolean from Standard
|
|
---C++: inline
|
|
is static;
|
|
|
|
NeedTangentFix(me; FirstFlag : in out Boolean from Standard ;
|
|
SecondFlag : in out Boolean from Standard) ;
|
|
FixTangent (me : in out ; FirstFlag : Boolean from Standard ;
|
|
LastFlag : Boolean from Standard) ;
|
|
|
|
FixedTangent (me : in out ; FirstFlag : Boolean from Standard ;
|
|
LastFlag : Boolean from Standard)
|
|
---Purpose: modifies the curve
|
|
-- by fixing the first or the last tangencies
|
|
--
|
|
returns BSplineCurve from Geom2d
|
|
raises
|
|
OutOfRange from Standard,
|
|
---Purpose: if Index3D not in the Range [1,Nb3dSpaces]
|
|
NotDone from StdFail
|
|
---Purpose: if the Approx is not Done
|
|
is static;
|
|
|
|
|
|
fields
|
|
|
|
myCurve : BSplineCurve from Geom2d ;
|
|
myDone : Boolean from Standard ;
|
|
myFixFirstTangent : Boolean from Standard ;
|
|
myFixLastTangent : Boolean from Standard ;
|
|
myAngularTolerance : Real from Standard ;
|
|
myTolerance : Real from Standard ;
|
|
myFirstPole : Pnt2d from gp ;
|
|
-- the second pole that controls first tangency
|
|
myLastPole : Pnt2d from gp ;
|
|
-- the before last pole that controls last tangency
|
|
|
|
end Check2dBSplineCurve;
|