b311480e |
1 | -- Created on: 1993-12-03 |
2 | -- Created by: Christophe MARION |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
973c2be1 |
8 | -- This library is free software; you can redistribute it and / or modify it |
9 | -- under the terms of the GNU Lesser General Public version 2.1 as published |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | package BRepExtrema |
18 | |
19 | ---Purpose: This package gives tools to compute extrema between |
20 | -- Shapes from BRep. |
21 | |
22 | uses |
23 | Standard, |
24 | StdFail, |
25 | TopoDS, |
26 | GeomAdaptor, |
27 | BRepAdaptor, |
28 | gp, |
29 | Extrema, |
30 | TColStd, |
31 | TopTools, |
32 | TCollection, |
33 | Bnd |
34 | |
35 | is |
36 | |
37 | ---------------------------------------------------------- |
38 | -- Extrema between two Shapes with triangulation. |
39 | ---------------------------------------------------------- |
92d1589b |
40 | imported Poly; |
7fd59977 |
41 | |
42 | |
43 | ---------------------------------------------------------- |
44 | -- Extrema between a Point and an Edge. |
45 | ---------------------------------------------------------- |
92d1589b |
46 | imported ExtPC; |
7fd59977 |
47 | |
48 | |
49 | ---------------------------------------------------------- |
50 | -- Extrema between two Edges. |
51 | ---------------------------------------------------------- |
92d1589b |
52 | imported ExtCC; |
7fd59977 |
53 | |
54 | |
55 | ---------------------------------------------------------- |
56 | -- Extrema between a Point and a Face. |
57 | ---------------------------------------------------------- |
92d1589b |
58 | imported ExtPF; |
7fd59977 |
59 | |
60 | |
61 | ---------------------------------------------------------- |
62 | -- Extrema between an Edge and a Face. |
63 | ---------------------------------------------------------- |
92d1589b |
64 | imported ExtCF; |
7fd59977 |
65 | |
66 | |
67 | ---------------------------------------------------------- |
68 | -- Extrema between two Faces. |
69 | ---------------------------------------------------------- |
92d1589b |
70 | imported ExtFF; |
7fd59977 |
71 | |
72 | |
73 | ---------------------------------------------------------- |
74 | -- |
75 | ---------------------------------------------------------- |
76 | exception UnCompatibleShape inherits DomainError; |
77 | |
78 | |
79 | ---------------------------------------------------------- |
80 | -- enumeration used to describe the type of the support solution: |
81 | -- IsVertex => The solution is a vertex. |
82 | -- IsOnEdge => The solution belongs to an Edge. |
83 | -- IsInFace => The solution is inside a Face. |
84 | |
85 | ---------------------------------------------------------- |
92d1589b |
86 | imported SupportType; |
7fd59977 |
87 | |
88 | |
89 | ---------------------------------------------------------- |
90 | -- This class gives tools to compute the minimum distance value |
91 | -- between two shapes and the corresponding couples of solution points. |
92 | |
93 | ---------------------------------------------------------- |
92d1589b |
94 | imported DistShapeShape; |
7fd59977 |
95 | |
96 | |
97 | ---------------------------------------------------------- |
98 | -- This class is used to store a solution on a Shape. |
99 | -- (used only by class DistShapeShape) |
100 | ---------------------------------------------------------- |
92d1589b |
101 | imported SolutionElem; |
7fd59977 |
102 | |
103 | |
104 | ---------------------------------------------------------- |
105 | -- This sequence is used to store all the solution on each Shape. |
106 | ---------------------------------------------------------- |
92d1589b |
107 | imported SeqOfSolution; |
7fd59977 |
108 | |
92d1589b |
109 | imported DistanceSS; |
7fd59977 |
110 | |
111 | end BRepExtrema; |