1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
-- File: StepToTopoDS.cdl
-- Created: Wed Jul 28 11:00:52 1993
-- Author: Martine LANGLOIS
-- <mla@mastox>
---Copyright: Matra Datavision 1993
package StepToTopoDS
--- Purpose: This package implements the mapping between AP214
-- Shape representation and CAS.CAD Shape Representation.
-- The source schema is Part42 (which is included in AP214)
uses TopoDS, StdFail, TCollection, TColStd, BRep, Geom, Geom2d,
GeomAdaptor, Extrema, gp, Transfer, Geom2dAPI,
StepRepr, StepGeom, StepShape, TopTools
is
-- -----------
-- enumeration
-- -----------
enumeration BuilderError is
BuilderDone,
BuilderOther
end;
enumeration TranslateShellError is
TranslateShellDone,
TranslateShellOther
end;
enumeration TranslateFaceError is
TranslateFaceDone,
TranslateFaceOther
end;
enumeration TranslateEdgeLoopError is
TranslateEdgeLoopDone,
TranslateEdgeLoopOther
end;
enumeration TranslateEdgeError is
TranslateEdgeDone,
TranslateEdgeOther
end;
enumeration TranslateVertexError is
TranslateVertexDone,
TranslateVertexOther
end;
enumeration TranslateVertexLoopError is
TranslateVertexLoopDone,
TranslateVertexLoopOther
end;
enumeration TranslatePolyLoopError is
TranslatePolyLoopDone,
TranslatePolyLoopOther
end;
enumeration GeometricToolError is
GeometricToolDone,
GeometricToolIsDegenerated,
GeometricToolHasNoPCurve,
GeometricToolWrong3dParameters,
GeometricToolNoProjectiOnCurve,
GeometricToolOther
end;
-- ---------------
-- Package Classes
-- ---------------
private deferred class Root;
class TranslateShell;
class TranslateFace;
class TranslateEdgeLoop;
class TranslateEdge;
class TranslateVertex;
class TranslatePolyLoop;
class TranslateVertexLoop;
class TranslateCompositeCurve;
class TranslateCurveBoundedSurface;
class Builder;
class MakeTransformed;
class GeometricTool;
-- class DegeneratedTool;
class Tool;
class CartesianPointHasher;
class PointPair;
class PointPairHasher;
class NMTool;
-- --------------------
-- Instanciated Classes
-- --------------------
class DataMapOfRI instantiates
DataMap from TCollection
(RepresentationItem from StepRepr,
Shape from TopoDS,
MapTransientHasher from TColStd);
class DataMapOfRINames instantiates
DataMap from TCollection
(AsciiString from TCollection,
Shape from TopoDS,
AsciiString from TCollection);
class DataMapOfTRI instantiates
DataMap from TCollection
(TopologicalRepresentationItem from StepShape,
Shape from TopoDS,
MapTransientHasher from TColStd);
class PointEdgeMap instantiates
DataMap from TCollection
(PointPair from StepToTopoDS,
Edge from TopoDS,
PointPairHasher from StepToTopoDS);
class PointVertexMap instantiates
DataMap from TCollection
(CartesianPoint from StepGeom,
Vertex from TopoDS,
CartesianPointHasher from StepToTopoDS);
-- class ExtPCOnS instantiates
-- GExtPC from Extrema(CurveOnSurface from GeomAdaptor,
-- CurveOnSurfaceTool from GeomAdaptor,
-- ExtPElC from Extrema,
-- Pnt from gp,
-- Vec from gp,
-- POnCurv from Extrema,
-- SequenceOfPOnCurv from Extrema);
-- --------------
-- Package Method
-- --------------
DecodeBuilderError (Error : BuilderError from StepToTopoDS)
returns HAsciiString from TCollection;
DecodeShellError (Error : TranslateShellError from StepToTopoDS)
returns HAsciiString from TCollection;
DecodeFaceError (Error : TranslateFaceError from StepToTopoDS)
returns HAsciiString from TCollection;
DecodeEdgeError (Error : TranslateEdgeError from StepToTopoDS)
returns HAsciiString from TCollection;
DecodeVertexError (Error : TranslateVertexError from StepToTopoDS)
returns HAsciiString from TCollection;
DecodeVertexLoopError (Error : TranslateVertexLoopError from StepToTopoDS)
returns HAsciiString from TCollection;
DecodePolyLoopError (Error : TranslatePolyLoopError from StepToTopoDS)
returns HAsciiString from TCollection;
DecodeGeometricToolError (Error : GeometricToolError from StepToTopoDS)
returns CString from Standard;
end StepToTopoDS;
|