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