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

135 lines
4.1 KiB
Plaintext

-- Created on: 1992-07-22
-- Created by: Laurent PAINNOT
-- Copyright (c) 1992-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 ExtElSS from Extrema
---Purpose: It calculates all the distances between 2 elementary
-- surfaces.
-- These distances can be maximum or minimum.
uses POnSurf from Extrema,
HArray1OfPOnSurf from Extrema,
HArray1OfReal from TColStd,
Pnt from gp,
Pln from gp,
Sphere from gp,
Cone from gp,
Torus from gp,
Cylinder from gp
raises InfiniteSolutions from StdFail,
NotDone from StdFail,
OutOfRange from Standard
is
Create returns ExtElSS;
Create (S1,S2: Pln) returns ExtElSS;
---Purpose: Calculates the distances between 2 planes.
-- These planes can be parallel.
Perform(me: in out; S1,S2: Pln)
is static;
Create (S1: Pln; S2: Sphere) returns ExtElSS;
---Purpose: Calculates the distances between a plane
-- and a sphere.
Perform(me: in out; S1: Pln; S2: Sphere)
is static;
Create (S1: Sphere; S2: Sphere) returns ExtElSS;
---Purpose: Calculates the distances between 2 spheres.
-- These spheres can be parallel.
Perform(me: in out; S1,S2: Sphere)
is static;
Create (S1: Sphere; S2: Cylinder) returns ExtElSS;
---Purpose: Calculates the distances between a sphere
-- and a cylinder.
Perform(me: in out; S1: Sphere; S2: Cylinder)
is static;
Create (S1: Sphere; S2: Cone) returns ExtElSS;
---Purpose: Calculates the distances between a sphere
-- and a cone.
Perform(me: in out; S1: Sphere; S2: Cone)
is static;
Create (S1: Sphere; S2: Torus) returns ExtElSS;
---Purpose: Calculates the distances between a sphere
-- and a torus.
Perform(me: in out; S1: Sphere; S2: Torus)
is static;
IsDone (me) returns Boolean
---Purpose: Returns True if the distances are found.
is static;
IsParallel (me) returns Boolean
---Purpose: Returns True if the two surfaces are parallel.
raises NotDone from StdFail
-- if IsDone(me)=False.
is static;
NbExt (me) returns Integer
---Purpose: Returns the number of extremum distances.
raises NotDone from StdFail,
-- if IsDone(me)=False.
InfiniteSolutions from StdFail
-- if IsParallel(me)=True
is static;
SquareDistance (me; N: Integer =1) returns Real
---Purpose: Returns the value of the Nth extremum square distance.
raises NotDone from StdFail,
-- if IsDone(me)=False.
OutOfRange,
-- if N < 1 or N > NbPoints(me)
InfiniteSolutions from StdFail
-- if IsParallel(me)=True and N<>1.
is static;
Points (me; N: Integer; P1,P2: out POnSurf)
---Purpose: Returns the points for the Nth resulting distance.
-- P1 is on the first surface, P2 on the second one.
raises NotDone from StdFail,
-- if IsDone(me)=False.
OutOfRange,
-- if N < 1 or N > NbPoints(me)
InfiniteSolutions from StdFail
-- if IsParallel(me)=True and N<>1.
is static;
fields
myDone : Boolean;
myIsPar : Boolean;
myNbExt : Integer;
mySqDist : HArray1OfReal from TColStd;
myPOnS1 : HArray1OfPOnSurf from Extrema;
myPOnS2 : HArray1OfPOnSurf from Extrema;
end ExtElSS;