mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
OCC22322 Improvement of Extrema performance Deleting useless files
This commit is contained in:
parent
2da8a19529
commit
b251c33e13
@ -1,229 +0,0 @@
|
||||
-- File: BRepExtrema_DistShapeShape.cdl
|
||||
-- Created: Tue Apr 9 14:29:10 1996
|
||||
-- Author: Maria PUMBORIOS
|
||||
-- Author: Herve LOUESSARD
|
||||
-- <mps@sgi30>
|
||||
---Copyright: Matra Datavision 1996
|
||||
|
||||
|
||||
class DistShapeShape from BRepExtrema
|
||||
---Purpose: This class provides tools to compute minimum distance
|
||||
-- between two Shapes (Compound,CompSolid, Solid, Shell, Face, Wire, Edge, Vertex).
|
||||
|
||||
uses
|
||||
|
||||
IndexedMapOfShape from TopTools,
|
||||
Boolean, Integer, OutOfRange from Standard,
|
||||
Pnt from gp,
|
||||
SupportType,SeqOfSolution from BRepExtrema,
|
||||
Shape from TopoDS,
|
||||
Box, SeqOfBox from Bnd,
|
||||
NotDone from StdFail
|
||||
|
||||
raises
|
||||
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard,
|
||||
UnCompatibleShape from BRepExtrema
|
||||
|
||||
|
||||
is
|
||||
|
||||
-- -- the computation of the minimum distance is made in the constructor
|
||||
|
||||
Create returns DistShapeShape from BRepExtrema;
|
||||
---Purpose: create empty brepextrema
|
||||
|
||||
Create(Shape1 : Shape from TopoDS;
|
||||
Shape2 : Shape from TopoDS)
|
||||
---Purpose: computation of the minimum distance (value and
|
||||
-- couple of points) using default deflection
|
||||
returns DistShapeShape from BRepExtrema;
|
||||
|
||||
Create(Shape1 : Shape from TopoDS;
|
||||
Shape2 : Shape from TopoDS;
|
||||
theDeflection : Real from Standard)
|
||||
---Purpose: Creates brepextrema and load both shapes into it
|
||||
-- Default value is Precision::Confusion().
|
||||
--
|
||||
-- Computation of the minimum distance (value and
|
||||
-- couple of points). Parameter theDeflection is used
|
||||
-- to specify a maximum deviation of extreme distances
|
||||
-- from the minimum one.
|
||||
-- Default value is Precision::Confusion().
|
||||
returns DistShapeShape from BRepExtrema;
|
||||
|
||||
SetDeflection(me: in out; theDeflection : Real from Standard);
|
||||
-- Default value is Precision::Confusion().
|
||||
|
||||
LoadS1(me: in out; Shape1 : Shape from TopoDS);
|
||||
---Purpose: load first shape into extrema
|
||||
|
||||
LoadS2(me: in out; Shape1 : Shape from TopoDS);
|
||||
---Purpose: load second shape into extrema
|
||||
|
||||
Perform(me: in out) returns Boolean from Standard;
|
||||
---Purpose: computation of the minimum distance (value and
|
||||
-- couple of points). Parameter theDeflection is used
|
||||
-- to specify a maximum deviation of extreme distances
|
||||
-- from the minimum one.
|
||||
-- Returns IsDone status.
|
||||
|
||||
-- the following method is only used in the computation of
|
||||
-- minimum distance
|
||||
|
||||
DistanceMapMap(me :in out; Map1, Map2: IndexedMapOfShape from TopTools;
|
||||
LBox1, LBox2: SeqOfBox from Bnd)
|
||||
---Purpose: computes the minimum distance between two map of
|
||||
-- shapes(Face,Edge,Vertex)
|
||||
is private;
|
||||
|
||||
--- methods giving informations about the solutions
|
||||
|
||||
|
||||
IsDone(me) returns Boolean from Standard;
|
||||
---Purpose: True if the minimum distance is found.
|
||||
|
||||
|
||||
|
||||
NbSolution(me) returns Integer from Standard
|
||||
---Purpose: Returns the number of solutions satisfying the minimum
|
||||
-- distance.
|
||||
raises NotDone from StdFail;
|
||||
|
||||
|
||||
|
||||
Value(me) returns Real from Standard
|
||||
---Purpose: Returns the value of the minimum distance.
|
||||
raises NotDone from StdFail;
|
||||
|
||||
|
||||
|
||||
InnerSolution (me) returns Boolean from Standard;
|
||||
---Purpose: True if one of the shapes is a solid and the
|
||||
-- other shape is completely or partially inside the solid.
|
||||
|
||||
|
||||
PointOnShape1(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point corresponding to the <N>th
|
||||
-- solution on the first Shape
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
|
||||
PointOnShape2(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point corresponding to the <N>th
|
||||
-- solution on the second Shape
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
|
||||
SupportTypeShape1(me; N : Integer from Standard)
|
||||
returns SupportType from BRepExtrema
|
||||
---Purpose: gives the type of the support where the Nth
|
||||
-- solution on the first shape is situated:
|
||||
-- IsVertex :
|
||||
-- => the Nth solution on the first shape is a Vertex
|
||||
-- IsOnEdge
|
||||
-- => the Nth soluion on the first shape is on a Edge
|
||||
-- IsInFace
|
||||
-- => the Nth solution on the first shape is inside a
|
||||
-- face
|
||||
--
|
||||
-- the corresponding support is obtained by the
|
||||
-- method SupportOnShape1
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
|
||||
SupportTypeShape2(me; N : Integer from Standard)
|
||||
returns SupportType from BRepExtrema
|
||||
---Purpose: gives the type of the support where the Nth
|
||||
-- solution on the second shape is situated:
|
||||
-- IsVertex :
|
||||
-- => the Nth solution on the second shape is a Vertex
|
||||
-- IsOnEdge
|
||||
-- => the Nth soluion on the secondt shape is on a Edge
|
||||
-- IsInFace
|
||||
-- => the Nth solution on the second shape is inside a
|
||||
-- face
|
||||
--
|
||||
-- the support is obtained by the method SupportOnShape2
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
|
||||
SupportOnShape1(me; N : Integer from Standard) returns Shape from TopoDS
|
||||
---Purpose :gives the support where the Nth
|
||||
-- solution on the first shape is situated.
|
||||
-- This support can be a Vertex, an Edge or a Face.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
|
||||
SupportOnShape2(me; N : Integer from Standard) returns Shape from TopoDS
|
||||
---Purpose: gives the support where the Nth
|
||||
-- solution on the second shape is situated.
|
||||
-- This support can be a Vertex, an Edge or a Face.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
|
||||
ParOnEdgeS1(me; N: Integer from Standard; t: out Real from Standard)
|
||||
---Purpose: gives the corresponding parameter t if the Nth
|
||||
-- Solution is situated on an Egde of the first shape
|
||||
raises UnCompatibleShape,
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
|
||||
ParOnEdgeS2(me; N: Integer from Standard; t: out Real from Standard)
|
||||
---Purpose: gives the corresponding parameter t if the Nth
|
||||
-- Solution is situated on an Egde of the first shape
|
||||
raises UnCompatibleShape,
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
|
||||
ParOnFaceS1(me; N: Integer from Standard; u: out Real from Standard;
|
||||
v:out Real from Standard)
|
||||
---Purpose: gives the corresponding parameters (U,V) if the Nth
|
||||
-- Solution is situated on an face of the first shape
|
||||
raises UnCompatibleShape,
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
|
||||
ParOnFaceS2(me; N: Integer from Standard; u: out Real from Standard;
|
||||
v:out Real from Standard)
|
||||
---Purpose: gives the corresponding parameters (U,V) if the Nth
|
||||
-- Solution is situated on an Face of the second shape
|
||||
raises UnCompatibleShape,
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard;
|
||||
|
||||
Dump(me ; o : in out OStream);
|
||||
---Purpose: Prints on the stream o information on the current state
|
||||
-- of the object.
|
||||
--
|
||||
|
||||
fields
|
||||
|
||||
myNbSolution : Integer from Standard;
|
||||
myDistRef : Real from Standard;
|
||||
myDistValue : Real from Standard;
|
||||
myIsDone : Boolean from Standard;
|
||||
ListeDeSolutionShape1 : SeqOfSolution from BRepExtrema;
|
||||
ListeDeSolutionShape2 : SeqOfSolution from BRepExtrema;
|
||||
myInnerSol : Boolean from Standard;
|
||||
myEps : Real from Standard;
|
||||
myShape1 : Shape from TopoDS;
|
||||
myShape2 : Shape from TopoDS;
|
||||
myMapV1 : IndexedMapOfShape from TopTools;
|
||||
myMapV2 : IndexedMapOfShape from TopTools;
|
||||
myMapE1 : IndexedMapOfShape from TopTools;
|
||||
myMapE2 : IndexedMapOfShape from TopTools;
|
||||
myMapF1 : IndexedMapOfShape from TopTools;
|
||||
myMapF2 : IndexedMapOfShape from TopTools;
|
||||
|
||||
end DistShapeShape;
|
@ -1,128 +0,0 @@
|
||||
-- File: BRepExtrema_DistanceSS.cdl
|
||||
-- Created: Wed Apr 17 16:03:05 1996
|
||||
-- Author: Maria PUMBORIOS
|
||||
-- Author: Herve LOUESSARD
|
||||
-- <mps@sgi30>
|
||||
---Copyright: Matra Datavision 1996
|
||||
--
|
||||
|
||||
private class DistanceSS from BRepExtrema
|
||||
|
||||
|
||||
---Purpose: This class allows to compute minimum distance between two shapes
|
||||
-- (face edge vertex) and is used in DistShapeShape class.
|
||||
|
||||
uses
|
||||
Shape from TopoDS,
|
||||
Box from Bnd,
|
||||
Vertex from TopoDS,
|
||||
Edge from TopoDS,
|
||||
Face from TopoDS,
|
||||
Pnt from gp,
|
||||
SeqOfSolution from BRepExtrema,
|
||||
Real from Standard
|
||||
|
||||
|
||||
is
|
||||
Create( S1: Shape from TopoDS; S2: Shape from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard)
|
||||
---Purpose: computes the distance between two Shapes
|
||||
-- ( face edge vertex)
|
||||
returns DistanceSS from BRepExtrema;
|
||||
|
||||
Create( S1: Shape from TopoDS; S2: Shape from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard;
|
||||
aDeflection: Real from Standard)
|
||||
---Purpose: computes the distance between two Shapes
|
||||
-- ( face edge vertex). Parameter theDeflection is used
|
||||
-- to specify a maximum deviation of extreme distances
|
||||
-- from the minimum one.
|
||||
-- Default value is Precision::Confusion().
|
||||
returns DistanceSS from BRepExtrema;
|
||||
|
||||
|
||||
Perform(me:in out; S1: Shape from TopoDS; S2: Shape from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard)
|
||||
---Purpose: computes the distance between two Shapes
|
||||
-- ( face edge vertex)
|
||||
is private;
|
||||
|
||||
Perform (me:in out; S1: Vertex from TopoDS; S2: Vertex from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard)
|
||||
---Purpose: computes the distance between two vertices
|
||||
is private;
|
||||
|
||||
|
||||
Perform( me:in out;S1: Vertex from TopoDS; S2: Edge from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard)
|
||||
---Purpose: computes the minimum distance between a vertex and an edge
|
||||
|
||||
is private;
|
||||
|
||||
|
||||
Perform( me:in out; S1: Vertex from TopoDS; S2: Face from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard )
|
||||
---Purpose:computes the minimum distance between a vertex and a face
|
||||
is private;
|
||||
|
||||
|
||||
Perform(me:in out; S1: Edge from TopoDS; S2: Vertex from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard)
|
||||
---Purpose: computes the minimum distance between an edge and a vertex
|
||||
is private;
|
||||
|
||||
Perform( me:in out;S1:Edge from TopoDS; S2: Edge from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard)
|
||||
|
||||
---Purpose:
|
||||
is private;
|
||||
|
||||
Perform(me:in out; S1: Edge from TopoDS; S2: Face from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard )
|
||||
---Purpose:computes the minimum distance an edge and a face
|
||||
is private;
|
||||
|
||||
Perform( me:in out; S1: Face from TopoDS; S2: Vertex from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard)
|
||||
---Purpose:computes the minimum distance betwwen a face and a vertex
|
||||
is private;
|
||||
|
||||
Perform( me: in out ;S1: Face from TopoDS; S2: Edge from TopoDS;
|
||||
B1, B2: Box from Bnd; DstRef: Real from Standard)
|
||||
---Purpose:computes the minimum distance between a face and an edge
|
||||
|
||||
is private;
|
||||
|
||||
Perform( me:in out; S1: Face from TopoDS; S2: Face from TopoDS;
|
||||
B1, B2: Box from Bnd ; DstRef: Real from Standard)
|
||||
---Purpose:computes the minimum distance between a face and a face
|
||||
|
||||
is private;
|
||||
|
||||
IsDone(me) returns Boolean from Standard;
|
||||
---Purpose: True if the distance has been computed
|
||||
|
||||
|
||||
DistValue(me) returns Real from Standard;
|
||||
---Purpose: returns the distance value
|
||||
|
||||
Seq1Value(me) returns SeqOfSolution from BRepExtrema;
|
||||
---C++: return const&
|
||||
---Purpose : returns the list of solutions on the first shape
|
||||
|
||||
Seq2Value(me) returns SeqOfSolution from BRepExtrema;
|
||||
---C++: return const&
|
||||
---Purpose returns the list of solutions on the second shape
|
||||
|
||||
|
||||
fields
|
||||
|
||||
SeqSolShape1 : SeqOfSolution from BRepExtrema;
|
||||
SeqSolShape2 : SeqOfSolution from BRepExtrema;
|
||||
myDstRef: Real from Standard;
|
||||
myModif : Boolean from Standard;
|
||||
myEps : Real from Standard;
|
||||
|
||||
|
||||
|
||||
end;
|
@ -1,104 +0,0 @@
|
||||
-- File: BRepExtrema_ExtCC.cdl
|
||||
-- Created: Tue Feb 8 09:03:52 1994
|
||||
-- Author: Laurent PAINNOT
|
||||
-- <lpa@phylox>
|
||||
---Copyright: Matra Datavision 1994
|
||||
|
||||
|
||||
class ExtCC from BRepExtrema
|
||||
|
||||
uses
|
||||
Integer from Standard,
|
||||
Real from Standard,
|
||||
Boolean from Standard,
|
||||
Edge from TopoDS,
|
||||
HCurve from BRepAdaptor,
|
||||
ExtCC from Extrema,
|
||||
Pnt from gp
|
||||
|
||||
raises
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard,
|
||||
TypeMismatch from Standard
|
||||
|
||||
is
|
||||
Create returns ExtCC from BRepExtrema;
|
||||
|
||||
Create(E1 : Edge from TopoDS;
|
||||
E2 : Edge from TopoDS)
|
||||
---Purpose: It calculates all the distances.
|
||||
returns ExtCC from BRepExtrema;
|
||||
|
||||
Initialize(me: in out; E2 : Edge from TopoDS)
|
||||
---Purpose:
|
||||
is static;
|
||||
|
||||
Perform(me: in out; E1 : Edge from TopoDS)
|
||||
---Purpose: An exception is raised if the fields have not been
|
||||
-- initialized.
|
||||
raises TypeMismatch from Standard
|
||||
is static;
|
||||
|
||||
IsDone(me) returns Boolean from Standard
|
||||
---Purpose: True if the distances are found.
|
||||
is static;
|
||||
|
||||
NbExt(me) returns Integer from Standard
|
||||
---Purpose: Returns the number of extremum distances.
|
||||
raises NotDone from StdFail
|
||||
is static;
|
||||
|
||||
IsParallel(me) returns Boolean from Standard
|
||||
---Purpose: Returns True if E1 and E2 are parallel.
|
||||
raises NotDone from StdFail
|
||||
is static;
|
||||
|
||||
SquareDistance(me; N : Integer from Standard) returns Real from Standard
|
||||
---Purpose: Returns the value of the <N>th extremum square distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
ParameterOnE1(me; N : Integer from Standard) returns Real from Standard
|
||||
---Purpose: Returns the parameter on the first edge of the <N>th
|
||||
-- extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
PointOnE1(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point of the <N>th extremum distance
|
||||
-- on the edge E1.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
ParameterOnE2(me; N : Integer from Standard) returns Real from Standard
|
||||
---Purpose: Returns the parameter on the second edge of the <N>th
|
||||
-- extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
PointOnE2(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point of the <N>th extremum distance
|
||||
-- on the edge E2.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
TrimmedSquareDistances(me; dist11, distP12, distP21, distP22: out Real;
|
||||
P11, P12, P21, P22: out Pnt)
|
||||
---Purpose: if the edges is a trimmed curve,
|
||||
-- dist11 is a square distance between the point on E1
|
||||
-- of parameter FirstParameter and the point of
|
||||
-- parameter FirstParameter on E2.
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
fields
|
||||
myExtrem : ExtCC from Extrema;
|
||||
myHC : HCurve from BRepAdaptor;
|
||||
end ExtCC;
|
@ -1,109 +0,0 @@
|
||||
-- File: BRepExtrema_ExtCF.cdl
|
||||
-- Created: Wed Feb 9 12:57:57 1994
|
||||
-- Author: Laurent PAINNOT
|
||||
-- <lpa@phylox>
|
||||
---Copyright: Matra Datavision 1994
|
||||
|
||||
|
||||
class ExtCF from BRepExtrema
|
||||
|
||||
uses
|
||||
Integer from Standard,
|
||||
Real from Standard,
|
||||
Boolean from Standard,
|
||||
Face from TopoDS,
|
||||
Edge from TopoDS,
|
||||
HSurface from BRepAdaptor,
|
||||
ExtCS from Extrema,
|
||||
SequenceOfReal from TColStd,
|
||||
SequenceOfPOnCurv from Extrema,
|
||||
SequenceOfPOnSurf from Extrema,
|
||||
Pnt from gp
|
||||
|
||||
raises
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard,
|
||||
TypeMismatch from Standard
|
||||
|
||||
is
|
||||
Create returns ExtCF from BRepExtrema;
|
||||
|
||||
Create(V : Edge from TopoDS;
|
||||
E : Face from TopoDS)
|
||||
---Purpose: It calculates all the distances.
|
||||
returns ExtCF from BRepExtrema;
|
||||
|
||||
Initialize(me: in out; E : Face from TopoDS)
|
||||
---Purpose:
|
||||
is static;
|
||||
|
||||
Perform(me: in out; V : Edge from TopoDS;
|
||||
E : Face from TopoDS)
|
||||
---Purpose: An exception is raised if the fields have not been
|
||||
-- initialized.
|
||||
-- Be careful: this method uses the Face only for
|
||||
-- classify not for the fields.
|
||||
raises TypeMismatch from Standard
|
||||
is static;
|
||||
|
||||
IsDone(me) returns Boolean from Standard
|
||||
---Purpose: True if the distances are found.
|
||||
is static;
|
||||
|
||||
NbExt(me) returns Integer from Standard
|
||||
---Purpose: Returns the number of extremum distances.
|
||||
raises NotDone from StdFail
|
||||
is static;
|
||||
|
||||
|
||||
SquareDistance(me; N : Integer from Standard) returns Real from Standard
|
||||
---Purpose: Returns the value of the <N>th extremum square distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
IsParallel (me) returns Boolean
|
||||
---Purpose: Returns True if the curve is on a parallel surface.
|
||||
is static;
|
||||
|
||||
|
||||
ParameterOnEdge(me; N : Integer from Standard) returns Real
|
||||
---Purpose: Returns the parameters on the Edge of the <N>th
|
||||
-- extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
ParameterOnFace(me; N : Integer from Standard; U, V: out Real)
|
||||
---Purpose: Returns the parameters on the Face of the <N>th
|
||||
-- extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
PointOnEdge(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point of the <N>th extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
PointOnFace(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point of the <N>th extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
fields
|
||||
myExtrem : ExtCS from Extrema;
|
||||
mynbext : Integer from Standard;
|
||||
mySqDist : SequenceOfReal from TColStd;
|
||||
myPointsOnS : SequenceOfPOnSurf from Extrema;
|
||||
myPointsOnC : SequenceOfPOnCurv from Extrema;
|
||||
myHS : HSurface from BRepAdaptor;
|
||||
|
||||
end ExtCF;
|
@ -1,111 +0,0 @@
|
||||
-- File: BRepExtrema_ExtFF.cdl
|
||||
-- Created: Wed Feb 9 13:01:29 1994
|
||||
-- Author: Laurent PAINNOT
|
||||
-- <lpa@phylox>
|
||||
---Copyright: Matra Datavision 1994
|
||||
|
||||
|
||||
class ExtFF from BRepExtrema
|
||||
|
||||
uses
|
||||
Integer from Standard,
|
||||
Real from Standard,
|
||||
Boolean from Standard,
|
||||
Face from TopoDS,
|
||||
SequenceOfReal from TColStd,
|
||||
SequenceOfPOnSurf from Extrema,
|
||||
ExtSS from Extrema,
|
||||
Pnt from gp,
|
||||
HSurface from BRepAdaptor
|
||||
|
||||
raises
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard,
|
||||
TypeMismatch from Standard
|
||||
|
||||
is
|
||||
Create returns ExtFF from BRepExtrema;
|
||||
|
||||
Create(F1 : Face from TopoDS;
|
||||
F2 : Face from TopoDS)
|
||||
---Purpose: It calculates all the distances.
|
||||
returns ExtFF from BRepExtrema;
|
||||
|
||||
Initialize(me: in out; F2 : Face from TopoDS)
|
||||
---Purpose:
|
||||
is static;
|
||||
|
||||
Perform(me: in out; F1 : Face from TopoDS;
|
||||
F2 : Face from TopoDS)
|
||||
---Purpose: An exception is raised if the fields have not been
|
||||
-- initialized.
|
||||
-- Be careful: this method uses the Face F2 only for
|
||||
-- classify, not for the fields.
|
||||
raises TypeMismatch from Standard
|
||||
is static;
|
||||
|
||||
IsDone(me) returns Boolean from Standard
|
||||
---Purpose: True if the distances are found.
|
||||
is static;
|
||||
|
||||
IsParallel (me) returns Boolean
|
||||
---Purpose: Returns True if the surfaces are parallel.
|
||||
is static;
|
||||
|
||||
|
||||
NbExt(me) returns Integer from Standard
|
||||
---Purpose: Returns the number of extremum distances.
|
||||
raises NotDone from StdFail
|
||||
is static;
|
||||
|
||||
|
||||
SquareDistance(me; N : Integer from Standard) returns Real from Standard
|
||||
---Purpose: Returns the value of the <N>th extremum square distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
ParameterOnFace1(me; N : Integer from Standard; U, V: out Real)
|
||||
---Purpose: Returns the parameters on the Face F1 of the <N>th
|
||||
-- extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
ParameterOnFace2(me; N : Integer from Standard; U, V: out Real)
|
||||
---Purpose: Returns the parameters on the Face F2 of the <N>th
|
||||
-- extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
PointOnFace1(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point of the <N>th extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
PointOnFace2(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point of the <N>th extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
fields
|
||||
myExtrem : ExtSS from Extrema;
|
||||
mynbext : Integer from Standard;
|
||||
mySqDist : SequenceOfReal from TColStd;
|
||||
myPointsOnS1: SequenceOfPOnSurf from Extrema;
|
||||
myPointsOnS2: SequenceOfPOnSurf from Extrema;
|
||||
myHS : HSurface from BRepAdaptor;
|
||||
end ExtFF;
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,91 +0,0 @@
|
||||
-- File: BRepExtrema_ExtPC.cdl
|
||||
-- Created: Fri Dec 3 16:01:30 1993
|
||||
-- Author: Christophe MARION
|
||||
-- <cma@sdsun1>
|
||||
---Copyright: Matra Datavision 1993
|
||||
|
||||
class ExtPC from BRepExtrema
|
||||
|
||||
uses
|
||||
Integer from Standard,
|
||||
Real from Standard,
|
||||
Boolean from Standard,
|
||||
Vertex from TopoDS,
|
||||
Edge from TopoDS,
|
||||
ExtPC from Extrema,
|
||||
Pnt from gp,
|
||||
HCurve from BRepAdaptor
|
||||
|
||||
raises
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard,
|
||||
TypeMismatch from Standard
|
||||
|
||||
is
|
||||
Create returns ExtPC from BRepExtrema;
|
||||
|
||||
Create(V : Vertex from TopoDS;
|
||||
E : Edge from TopoDS)
|
||||
---Purpose: It calculates all the distances.
|
||||
returns ExtPC from BRepExtrema;
|
||||
|
||||
Initialize(me: in out; E : Edge from TopoDS)
|
||||
---Purpose:
|
||||
is static;
|
||||
|
||||
Perform(me: in out; V : Vertex from TopoDS)
|
||||
---Purpose: An exception is raised if the fields have not been
|
||||
-- initialized.
|
||||
raises TypeMismatch from Standard
|
||||
is static;
|
||||
|
||||
IsDone(me) returns Boolean from Standard
|
||||
---Purpose: True if the distances are found.
|
||||
is static;
|
||||
|
||||
NbExt(me) returns Integer from Standard
|
||||
---Purpose: Returns the number of extremum distances.
|
||||
raises NotDone from StdFail
|
||||
is static;
|
||||
|
||||
IsMin(me; N : Integer from Standard) returns Boolean from Standard
|
||||
---Purpose: Returns True if the <N>th extremum distance is a
|
||||
-- minimum.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
SquareDistance(me; N : Integer from Standard) returns Real from Standard
|
||||
---Purpose: Returns the value of the <N>th extremum square distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
Parameter(me; N : Integer from Standard) returns Real from Standard
|
||||
---Purpose: Returns the parameter on the edge of the <N>th
|
||||
-- extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
Point(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point of the <N>th extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
TrimmedSquareDistances(me; dist1 : out Real from Standard;
|
||||
dist2 : out Real from Standard;
|
||||
pnt1 : out Pnt from gp;
|
||||
pnt2 : out Pnt from gp)
|
||||
---Purpose: if the curve is a trimmed curve,
|
||||
-- dist1 is a square distance between <P> and the point
|
||||
-- of parameter FirstParameter <pnt1> and
|
||||
-- dist2 is a square distance between <P> and the point
|
||||
-- of parameter LastParameter <pnt2>.
|
||||
is static;
|
||||
|
||||
fields
|
||||
myExtrem : ExtPC from Extrema;
|
||||
myHC : HCurve from BRepAdaptor;
|
||||
end ExtPC;
|
@ -1,85 +0,0 @@
|
||||
-- File: BRepExtrema_ExtPF.cdl
|
||||
-- Created: Wed Feb 9 08:33:21 1994
|
||||
-- Author: Laurent PAINNOT
|
||||
-- <lpa@phylox>
|
||||
---Copyright: Matra Datavision 1994
|
||||
|
||||
class ExtPF from BRepExtrema
|
||||
|
||||
uses
|
||||
Integer from Standard,
|
||||
Real from Standard,
|
||||
Boolean from Standard,
|
||||
Face from TopoDS,
|
||||
Vertex from TopoDS,
|
||||
ExtPS from Extrema,
|
||||
SequenceOfReal from TColStd,
|
||||
SequenceOfPOnSurf from Extrema,
|
||||
Pnt from gp,
|
||||
Surface from BRepAdaptor
|
||||
|
||||
raises
|
||||
NotDone from StdFail,
|
||||
OutOfRange from Standard,
|
||||
TypeMismatch from Standard
|
||||
|
||||
is
|
||||
Create returns ExtPF from BRepExtrema;
|
||||
|
||||
Create(V : Vertex from TopoDS;
|
||||
E : Face from TopoDS)
|
||||
---Purpose: It calculates all the distances.
|
||||
returns ExtPF from BRepExtrema;
|
||||
|
||||
Initialize(me: in out; E : Face from TopoDS)
|
||||
---Purpose:
|
||||
is static;
|
||||
|
||||
Perform(me: in out; V : Vertex from TopoDS;
|
||||
E : Face from TopoDS)
|
||||
---Purpose: An exception is raised if the fields have not been
|
||||
-- initialized.
|
||||
-- Be careful: this method uses the Face only for
|
||||
-- classify not for the fields.
|
||||
raises TypeMismatch from Standard
|
||||
is static;
|
||||
|
||||
IsDone(me) returns Boolean from Standard
|
||||
---Purpose: True if the distances are found.
|
||||
is static;
|
||||
|
||||
NbExt(me) returns Integer from Standard
|
||||
---Purpose: Returns the number of extremum distances.
|
||||
raises NotDone from StdFail
|
||||
is static;
|
||||
|
||||
|
||||
SquareDistance(me; N : Integer from Standard) returns Real from Standard
|
||||
---Purpose: Returns the value of the <N>th extremum square distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
Parameter(me; N : Integer from Standard; U, V: out Real)
|
||||
---Purpose: Returns the parameters on the Face of the <N>th
|
||||
-- extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
Point(me; N : Integer from Standard) returns Pnt from gp
|
||||
---Purpose: Returns the Point of the <N>th extremum distance.
|
||||
raises NotDone from StdFail,
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
fields
|
||||
myExtrem : ExtPS from Extrema;
|
||||
mynbext : Integer from Standard;
|
||||
mySqDist : SequenceOfReal from TColStd;
|
||||
myPoints : SequenceOfPOnSurf from Extrema;
|
||||
mySurf : Surface from BRepAdaptor;
|
||||
|
||||
end ExtPF;
|
@ -1,22 +0,0 @@
|
||||
-- File: BRepExtrema_Poly.cdl
|
||||
-- Created: Fri Sep 8 10:53:43 1995
|
||||
-- Author: Christophe MARION
|
||||
-- <cma@ecolox>
|
||||
---Copyright: Matra Datavision 1995
|
||||
|
||||
class Poly from BRepExtrema
|
||||
|
||||
uses
|
||||
Boolean from Standard,
|
||||
Shape from TopoDS,
|
||||
Pnt from gp
|
||||
|
||||
is
|
||||
Distance(myclass; S1,S2 : Shape from TopoDS;
|
||||
P1,P2 : out Pnt from gp;
|
||||
dist : out Real from Standard)
|
||||
---Purpose: returns Standard_True if OK.
|
||||
returns Boolean from Standard;
|
||||
|
||||
end Poly;
|
||||
|
@ -1,126 +0,0 @@
|
||||
-- File: BRepExtrema_SolutionElem.cdl
|
||||
-- Created: Thu Apr 18 10:00:04 1996
|
||||
-- Author: Maria PUMBORIOS
|
||||
-- Author: Herve LOUESSARD
|
||||
-- <jpi@sgi64>
|
||||
---Copyright: Matra Datavision 1996
|
||||
|
||||
class SolutionElem from BRepExtrema
|
||||
|
||||
---Purpose: This class is used to store information relative to the
|
||||
-- minimum distance between two shapes.
|
||||
|
||||
uses
|
||||
Real from Standard,
|
||||
Pnt from gp,
|
||||
Vertex from TopoDS,
|
||||
Face from TopoDS,
|
||||
Edge from TopoDS,
|
||||
SupportType from BRepExtrema
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create returns SolutionElem from BRepExtrema;
|
||||
|
||||
Create( d: Real from Standard;
|
||||
Pt: Pnt from gp;
|
||||
SolType: SupportType from BRepExtrema ;
|
||||
vertex: Vertex from TopoDS) returns SolutionElem from BRepExtrema;
|
||||
--- Purpose: initialisation of the fields
|
||||
-- This creator is used when the solution of a distance is a Vertex.
|
||||
-- The different initialized fields are: _ the distance d
|
||||
-- _ the solution point
|
||||
-- _ the type of solution
|
||||
-- _ and the Vertex.
|
||||
|
||||
|
||||
Create( d: Real from Standard;
|
||||
Pt: Pnt from gp;
|
||||
SolType: SupportType from BRepExtrema ;
|
||||
edge: Edge from TopoDS;
|
||||
t: Real from Standard ) returns SolutionElem from BRepExtrema;
|
||||
---Purpose: initialisation of the fiels.
|
||||
-- This constructor is used when the solution of distance is on
|
||||
-- an Edge. The different initialized fields are:
|
||||
-- _ the distance d,
|
||||
-- _ the solution point,
|
||||
-- _ the type of solution,
|
||||
-- _ the Edge,
|
||||
-- _ and the parameter t to locate the solution.
|
||||
|
||||
|
||||
Create( d: Real from Standard;
|
||||
Pt: Pnt from gp;
|
||||
SolType: SupportType from BRepExtrema ;
|
||||
face: Face from TopoDS;
|
||||
u: Real from Standard;
|
||||
v: Real from Standard ) returns SolutionElem from BRepExtrema;
|
||||
--- Purpose: initialisation of the fields
|
||||
-- This constructor is used when the solution of distance is in
|
||||
-- a Face. The different initialized fields are:
|
||||
-- _ the distance d,
|
||||
-- _ the solution point,
|
||||
-- _ the type of solution,
|
||||
-- _ the Face,
|
||||
-- _ and the parameter u et v to locate the solution.
|
||||
|
||||
Dist(me) returns Real from Standard;
|
||||
--- Purpose:
|
||||
-- returns the value of the minimum distance.
|
||||
--
|
||||
Point(me) returns Pnt from gp;
|
||||
--- Purpose:
|
||||
-- returns the solution point.
|
||||
--
|
||||
|
||||
SupportKind(me) returns SupportType from BRepExtrema;
|
||||
--- Purpose:
|
||||
-- returns the Support type :
|
||||
-- IsVertex => The solution is a vertex.
|
||||
-- IsOnEdge => The solution belongs to an Edge.
|
||||
-- IsInFace => The solution is inside a Face.
|
||||
|
||||
Vertex(me) returns Vertex from TopoDS;
|
||||
--- Purpose:
|
||||
-- returns the vertex if the solution is a Vertex.
|
||||
|
||||
Edge(me) returns Edge from TopoDS;
|
||||
--- Purpose:
|
||||
-- returns the vertex if the solution is an Edge.
|
||||
|
||||
Face(me) returns Face from TopoDS;
|
||||
--- Purpose:
|
||||
-- returns the vertex if the solution is an Face.
|
||||
|
||||
EdgeParameter(me; par1:out Real from Standard);
|
||||
--- Purpose:
|
||||
-- returns the parameter t if the solution is on Edge.
|
||||
|
||||
FaceParameter(me; par1: out Real from Standard; par2:out Real from Standard);
|
||||
--- Purpose:
|
||||
-- returns the parameters u et v if the solution is in a Face.
|
||||
|
||||
fields
|
||||
myDist : Real from Standard;
|
||||
myPoint : Pnt from gp;
|
||||
mySupType : SupportType from BRepExtrema;
|
||||
myVertex : Vertex from TopoDS;
|
||||
myEdge : Edge from TopoDS;
|
||||
myFace : Face from TopoDS;
|
||||
myPar1 : Real from Standard;
|
||||
myPar2 : Real from Standard;
|
||||
|
||||
end;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,102 +0,0 @@
|
||||
// File: BRepExtrema_SolutionElem.cxx
|
||||
// Created: Mon Apr 22 17:03:37 1996
|
||||
// Author: Maria PUMBORIOS
|
||||
// Author: Herve LOUESSARD
|
||||
// <mps@sgi64>
|
||||
|
||||
|
||||
|
||||
#include <BRepExtrema_SolutionElem.ixx>
|
||||
|
||||
/*********************************************************************************/
|
||||
/*********************************************************************************/
|
||||
|
||||
BRepExtrema_SolutionElem::BRepExtrema_SolutionElem()
|
||||
: myDist(0.), myPoint(0.,0.,0.), mySupType(BRepExtrema_IsVertex), myPar1(0.), myPar2(0.)
|
||||
{
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
BRepExtrema_SolutionElem::BRepExtrema_SolutionElem(const Standard_Real d,
|
||||
const gp_Pnt& Pt,
|
||||
const BRepExtrema_SupportType SolType,
|
||||
const TopoDS_Vertex& vertex)
|
||||
: myDist(d), myPoint(Pt), mySupType(SolType), myVertex(vertex), myPar1(0.), myPar2(0.)
|
||||
{
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
BRepExtrema_SolutionElem::BRepExtrema_SolutionElem(const Standard_Real d,
|
||||
const gp_Pnt& Pt,
|
||||
const BRepExtrema_SupportType SolType,
|
||||
const TopoDS_Edge& edge,
|
||||
const Standard_Real t)
|
||||
: myDist(d), myPoint(Pt), mySupType(SolType), myEdge(edge), myPar1(t), myPar2(0.)
|
||||
{
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
BRepExtrema_SolutionElem::BRepExtrema_SolutionElem(const Standard_Real d,
|
||||
const gp_Pnt& Pt,
|
||||
const BRepExtrema_SupportType SolType,
|
||||
const TopoDS_Face& face,
|
||||
const Standard_Real u,
|
||||
const Standard_Real v)
|
||||
: myDist(d), myPoint(Pt), mySupType(SolType), myFace(face), myPar1(u), myPar2(v)
|
||||
{
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
Standard_Real BRepExtrema_SolutionElem::Dist() const
|
||||
{ return(myDist);
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
gp_Pnt BRepExtrema_SolutionElem::Point() const
|
||||
{ return (myPoint);
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
BRepExtrema_SupportType BRepExtrema_SolutionElem::SupportKind() const
|
||||
{ return (mySupType);
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
TopoDS_Vertex BRepExtrema_SolutionElem::Vertex() const
|
||||
{ return (myVertex);
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
TopoDS_Edge BRepExtrema_SolutionElem::Edge() const
|
||||
{ return (myEdge);
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
TopoDS_Face BRepExtrema_SolutionElem::Face() const
|
||||
{ return (myFace);
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
void BRepExtrema_SolutionElem::EdgeParameter(Standard_Real& par1) const
|
||||
{ par1 = myPar1;
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
||||
void BRepExtrema_SolutionElem::FaceParameter(Standard_Real& par1, Standard_Real& par2) const
|
||||
{ par1 = myPar1;
|
||||
par2 = myPar2;
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
/*********************************************************************************/
|
Loading…
x
Reference in New Issue
Block a user