b311480e |
1 | -- Created on: 1995-04-25 |
2 | -- Created by: Jacques GOUSSARD |
3 | -- Copyright (c) 1995-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 | |
23 | package LocOpe |
24 | |
25 | ---Purpose: Provides tools to implement local topological |
26 | -- operations on a shape. |
27 | |
28 | uses MMgt, |
29 | StdFail, |
30 | TCollection, |
31 | TColStd, |
32 | gp, |
33 | Geom, |
34 | TColGeom, |
35 | TColgp, |
36 | |
37 | TopAbs, |
38 | TopoDS, |
39 | TopExp, |
40 | TopTools, |
41 | BRepFill, |
42 | BRepAlgo, |
43 | BRepSweep, |
44 | BOP, |
45 | TopOpeBRepDS |
46 | -- TopOpeBRepBuild |
47 | |
48 | is |
49 | |
50 | class Builder; |
51 | |
52 | class SplitShape; |
53 | |
54 | deferred class ProjectedWires; -- inherits TShared from MMgt |
55 | |
56 | class WiresOnShape; -- inherits ProjectedWires from LocOpe |
57 | |
58 | |
59 | class Spliter; |
60 | |
61 | class Generator; |
62 | |
63 | deferred class GeneratedShape; -- inherits TShared from MMgt |
64 | |
65 | class GluedShape; -- inherits GeneratedShape from LocOpe |
66 | class Prism; |
67 | class Revol; |
68 | |
69 | class Pipe; |
70 | |
71 | class DPrism; |
72 | |
73 | class LinearForm; |
74 | |
75 | class RevolutionForm; |
76 | |
77 | class Gluer; |
78 | |
79 | class FindEdges; |
80 | |
81 | class FindEdgesInFace; |
82 | |
83 | class DataMapOfShapePnt instantiates DataMap from TCollection |
84 | (Shape from TopoDS, |
85 | Pnt from gp, |
86 | ShapeMapHasher from TopTools); |
87 | |
88 | class PntFace; |
89 | |
90 | class CurveShapeIntersector; |
91 | |
92 | class CSIntersector; |
93 | |
94 | |
95 | class BuildShape; |
96 | |
97 | class SplitDrafts; |
98 | |
99 | |
100 | class SequenceOfPntFace instantiates Sequence from TCollection |
101 | (PntFace from LocOpe); |
102 | |
103 | class SequenceOfLin instantiates Sequence from TCollection |
104 | (Lin from gp); |
105 | |
106 | class SequenceOfCirc instantiates Sequence from TCollection |
107 | (Circ from gp); |
108 | |
109 | private class HBuilder; -- inherits HBuilder from TopOpeBRepBuild |
110 | |
111 | private class BuildWires; -- used in LocOpe_Spliter |
112 | |
113 | enumeration Operation is |
114 | FUSE, |
115 | CUT, |
116 | INVALID |
117 | end Operation; |
118 | |
119 | |
120 | Closed(W: Wire from TopoDS; OnF: Face from TopoDS) |
121 | ---Purpose: Returns Standard_True when the wire <W> is closed |
122 | -- on the face <OnF>. |
123 | returns Boolean from Standard; |
124 | |
125 | |
126 | Closed(E: Edge from TopoDS; OnF: Face from TopoDS) |
127 | ---Purpose: Returns Standard_True when the edge <E> is closed |
128 | -- on the face <OnF>. |
129 | returns Boolean from Standard; |
130 | |
131 | TgtFaces(E : Edge from TopoDS; |
132 | F1: Face from TopoDS; |
133 | F2: Face from TopoDS) |
134 | ---Purpose: Returns Standard_True when the faces are tangent |
135 | returns Boolean from Standard; |
136 | |
137 | |
138 | |
139 | -- IsInside(F1: Face from TopoDS; F2: Face from TopoDS) |
140 | -- ---Purpose: Returns Standard_True when the face F1 is in the |
141 | -- -- F2 . |
142 | -- returns Boolean from Standard; |
143 | |
144 | |
145 | SampleEdges(S : Shape from TopoDS; |
146 | Pt: in out SequenceOfPnt from TColgp); |
147 | |
148 | |
149 | end LocOpe; |
150 | |
151 | |
152 | |
153 | |
154 | |