b311480e |
1 | -- Created on: 1993-12-03 |
2 | -- Created by: Christophe MARION |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
10 | -- |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | -- |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | package BRepExtrema |
23 | |
24 | ---Purpose: This package gives tools to compute extrema between |
25 | -- Shapes from BRep. |
26 | |
27 | uses |
28 | Standard, |
29 | StdFail, |
30 | TopoDS, |
31 | GeomAdaptor, |
32 | BRepAdaptor, |
33 | gp, |
34 | Extrema, |
35 | TColStd, |
36 | TopTools, |
37 | TCollection, |
38 | Bnd |
39 | |
40 | is |
41 | |
42 | ---------------------------------------------------------- |
43 | -- Extrema between two Shapes with triangulation. |
44 | ---------------------------------------------------------- |
92d1589b |
45 | imported Poly; |
7fd59977 |
46 | |
47 | |
48 | ---------------------------------------------------------- |
49 | -- Extrema between a Point and an Edge. |
50 | ---------------------------------------------------------- |
92d1589b |
51 | imported ExtPC; |
7fd59977 |
52 | |
53 | |
54 | ---------------------------------------------------------- |
55 | -- Extrema between two Edges. |
56 | ---------------------------------------------------------- |
92d1589b |
57 | imported ExtCC; |
7fd59977 |
58 | |
59 | |
60 | ---------------------------------------------------------- |
61 | -- Extrema between a Point and a Face. |
62 | ---------------------------------------------------------- |
92d1589b |
63 | imported ExtPF; |
7fd59977 |
64 | |
65 | |
66 | ---------------------------------------------------------- |
67 | -- Extrema between an Edge and a Face. |
68 | ---------------------------------------------------------- |
92d1589b |
69 | imported ExtCF; |
7fd59977 |
70 | |
71 | |
72 | ---------------------------------------------------------- |
73 | -- Extrema between two Faces. |
74 | ---------------------------------------------------------- |
92d1589b |
75 | imported ExtFF; |
7fd59977 |
76 | |
77 | |
78 | ---------------------------------------------------------- |
79 | -- |
80 | ---------------------------------------------------------- |
81 | exception UnCompatibleShape inherits DomainError; |
82 | |
83 | |
84 | ---------------------------------------------------------- |
85 | -- enumeration used to describe the type of the support solution: |
86 | -- IsVertex => The solution is a vertex. |
87 | -- IsOnEdge => The solution belongs to an Edge. |
88 | -- IsInFace => The solution is inside a Face. |
89 | |
90 | ---------------------------------------------------------- |
92d1589b |
91 | imported SupportType; |
7fd59977 |
92 | |
93 | |
94 | ---------------------------------------------------------- |
95 | -- This class gives tools to compute the minimum distance value |
96 | -- between two shapes and the corresponding couples of solution points. |
97 | |
98 | ---------------------------------------------------------- |
92d1589b |
99 | imported DistShapeShape; |
7fd59977 |
100 | |
101 | |
102 | ---------------------------------------------------------- |
103 | -- This class is used to store a solution on a Shape. |
104 | -- (used only by class DistShapeShape) |
105 | ---------------------------------------------------------- |
92d1589b |
106 | imported SolutionElem; |
7fd59977 |
107 | |
108 | |
109 | ---------------------------------------------------------- |
110 | -- This sequence is used to store all the solution on each Shape. |
111 | ---------------------------------------------------------- |
92d1589b |
112 | imported SeqOfSolution; |
7fd59977 |
113 | |
92d1589b |
114 | imported DistanceSS; |
7fd59977 |
115 | |
116 | end BRepExtrema; |