summaryrefslogtreecommitdiff
path: root/src/StepToTopoDS/StepToTopoDS.cxx
blob: 19080e5ff12b66274c2c7df7c0cd42d4500a11ab (plain)
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
// File:	StepToTopoDS.cxx
// Created:	Tue Jan  3 11:15:46 1995
// Author:	Frederic MAUPAS
//		<fma@stylox>

#include <StepToTopoDS.ixx>

Handle(TCollection_HAsciiString) StepToTopoDS::DecodeBuilderError(const StepToTopoDS_BuilderError Error)
{
  Handle(TCollection_HAsciiString) mess;
  switch(Error)
    {
    case StepToTopoDS_BuilderDone:
      {
	mess = new TCollection_HAsciiString("Builder Done");
	break;
      }
    case StepToTopoDS_BuilderOther:
      {
	mess = new TCollection_HAsciiString("Builder Other");
	break;
      }
    }
  return mess;
}

Handle(TCollection_HAsciiString) StepToTopoDS::DecodeShellError(const StepToTopoDS_TranslateShellError Error)
{
  Handle(TCollection_HAsciiString) mess;
  switch(Error)
    {
    case StepToTopoDS_TranslateShellDone:
      {
	mess = new TCollection_HAsciiString("Translate Shell Done");
	break;
      }
    case StepToTopoDS_TranslateShellOther:
      {
	mess = new TCollection_HAsciiString("Translate Shell Other");
	break;
      }
    }
  return mess;
}

Handle(TCollection_HAsciiString) StepToTopoDS::DecodeFaceError(const StepToTopoDS_TranslateFaceError Error)
{
  Handle(TCollection_HAsciiString) mess;
  switch(Error)
    {
    case StepToTopoDS_TranslateFaceDone:
      {
	mess = new TCollection_HAsciiString("Translate Face Done");
	break;
      }
    case StepToTopoDS_TranslateFaceOther:
      {
	mess = new TCollection_HAsciiString("Translate Face Other");
	break;
      }
    }
  return mess;
}

Handle(TCollection_HAsciiString) StepToTopoDS::DecodeEdgeError(const StepToTopoDS_TranslateEdgeError Error)
{
  Handle(TCollection_HAsciiString) mess;
  switch(Error)
    {
    case StepToTopoDS_TranslateEdgeDone:
      {
	mess = new TCollection_HAsciiString("Translate Edge Done");
	break;
      }
    case StepToTopoDS_BuilderOther:
      {
	mess = new TCollection_HAsciiString("Translate Edge Other");
	break;
      }
    }
  return mess;
}

Handle(TCollection_HAsciiString) StepToTopoDS::DecodeVertexError(const StepToTopoDS_TranslateVertexError Error)
{
  Handle(TCollection_HAsciiString) mess;
  switch(Error)
    {
    case StepToTopoDS_TranslateVertexDone:
      {
	mess = new TCollection_HAsciiString("Translate Vertex Done");
	break;
      }
    case StepToTopoDS_TranslateVertexOther:
      {
	mess = new TCollection_HAsciiString("Translate Vertex Other");
	break;
      }
    }
  return mess;
}

Handle(TCollection_HAsciiString) StepToTopoDS::DecodeVertexLoopError(const StepToTopoDS_TranslateVertexLoopError Error)
{
  Handle(TCollection_HAsciiString) mess;
  switch(Error)
    {
    case StepToTopoDS_TranslateVertexLoopDone:
      {
	mess = new TCollection_HAsciiString("Translate VertexLoop Done");
	break;
      }
    case StepToTopoDS_TranslateVertexLoopOther:
      {
	mess = new TCollection_HAsciiString("Translate VertexLoop Other");
	break;
      }
    }
  return mess;
}

Handle(TCollection_HAsciiString) StepToTopoDS::DecodePolyLoopError(const StepToTopoDS_TranslatePolyLoopError Error)
{
  Handle(TCollection_HAsciiString) mess;
  switch(Error)
    {
    case StepToTopoDS_TranslatePolyLoopDone:
      {
	mess = new TCollection_HAsciiString("Translate PolyLoop Done");
	break;
      }
    case StepToTopoDS_TranslatePolyLoopOther:
      {
	mess = new TCollection_HAsciiString("Translate PolyLoop Other");
	break;
      }
    }
  return mess;
}


Standard_CString StepToTopoDS::DecodeGeometricToolError(const StepToTopoDS_GeometricToolError Error)
{
  Standard_CString  mess="";
  switch(Error)
    {
    case StepToTopoDS_GeometricToolDone:
      {
	mess = Standard_CString(" Geometric Tool is done");
	break;
      }
    case StepToTopoDS_GeometricToolIsDegenerated:
      {
	mess = Standard_CString(" an Edge is degenerated");
	break;
      }
    case StepToTopoDS_GeometricToolHasNoPCurve:
      {
	mess = Standard_CString(" SurfaceCurve does not contain a PCurve lying on the BasisSurface");
	break;
      }
    case StepToTopoDS_GeometricToolWrong3dParameters:
      {
	mess = Standard_CString(" the update of 3D-Parameters failed");
	break;
      }
    case StepToTopoDS_GeometricToolNoProjectiOnCurve:
      {
	mess = Standard_CString(" the projection of a VertexPoint on the curve3d failed");
	break;
      }
    case StepToTopoDS_GeometricToolOther:
      {
	mess = Standard_CString(" GeometricTool failed");
	break;
      }
    }
  return mess;
}