1 // Created on: 1995-01-03
2 // Created by: Frederic MAUPAS
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
22 #include <StepToTopoDS.ixx>
24 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeBuilderError(const StepToTopoDS_BuilderError Error)
26 Handle(TCollection_HAsciiString) mess;
29 case StepToTopoDS_BuilderDone:
31 mess = new TCollection_HAsciiString("Builder Done");
34 case StepToTopoDS_BuilderOther:
36 mess = new TCollection_HAsciiString("Builder Other");
43 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeShellError(const StepToTopoDS_TranslateShellError Error)
45 Handle(TCollection_HAsciiString) mess;
48 case StepToTopoDS_TranslateShellDone:
50 mess = new TCollection_HAsciiString("Translate Shell Done");
53 case StepToTopoDS_TranslateShellOther:
55 mess = new TCollection_HAsciiString("Translate Shell Other");
62 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeFaceError(const StepToTopoDS_TranslateFaceError Error)
64 Handle(TCollection_HAsciiString) mess;
67 case StepToTopoDS_TranslateFaceDone:
69 mess = new TCollection_HAsciiString("Translate Face Done");
72 case StepToTopoDS_TranslateFaceOther:
74 mess = new TCollection_HAsciiString("Translate Face Other");
81 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeEdgeError(const StepToTopoDS_TranslateEdgeError Error)
83 Handle(TCollection_HAsciiString) mess;
86 case StepToTopoDS_TranslateEdgeDone:
88 mess = new TCollection_HAsciiString("Translate Edge Done");
91 case StepToTopoDS_TranslateEdgeOther:
93 mess = new TCollection_HAsciiString("Translate Edge Other");
100 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeVertexError(const StepToTopoDS_TranslateVertexError Error)
102 Handle(TCollection_HAsciiString) mess;
105 case StepToTopoDS_TranslateVertexDone:
107 mess = new TCollection_HAsciiString("Translate Vertex Done");
110 case StepToTopoDS_TranslateVertexOther:
112 mess = new TCollection_HAsciiString("Translate Vertex Other");
119 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeVertexLoopError(const StepToTopoDS_TranslateVertexLoopError Error)
121 Handle(TCollection_HAsciiString) mess;
124 case StepToTopoDS_TranslateVertexLoopDone:
126 mess = new TCollection_HAsciiString("Translate VertexLoop Done");
129 case StepToTopoDS_TranslateVertexLoopOther:
131 mess = new TCollection_HAsciiString("Translate VertexLoop Other");
138 Handle(TCollection_HAsciiString) StepToTopoDS::DecodePolyLoopError(const StepToTopoDS_TranslatePolyLoopError Error)
140 Handle(TCollection_HAsciiString) mess;
143 case StepToTopoDS_TranslatePolyLoopDone:
145 mess = new TCollection_HAsciiString("Translate PolyLoop Done");
148 case StepToTopoDS_TranslatePolyLoopOther:
150 mess = new TCollection_HAsciiString("Translate PolyLoop Other");
158 Standard_CString StepToTopoDS::DecodeGeometricToolError(const StepToTopoDS_GeometricToolError Error)
160 Standard_CString mess="";
163 case StepToTopoDS_GeometricToolDone:
165 mess = Standard_CString(" Geometric Tool is done");
168 case StepToTopoDS_GeometricToolIsDegenerated:
170 mess = Standard_CString(" an Edge is degenerated");
173 case StepToTopoDS_GeometricToolHasNoPCurve:
175 mess = Standard_CString(" SurfaceCurve does not contain a PCurve lying on the BasisSurface");
178 case StepToTopoDS_GeometricToolWrong3dParameters:
180 mess = Standard_CString(" the update of 3D-Parameters failed");
183 case StepToTopoDS_GeometricToolNoProjectiOnCurve:
185 mess = Standard_CString(" the projection of a VertexPoint on the curve3d failed");
188 case StepToTopoDS_GeometricToolOther:
190 mess = Standard_CString(" GeometricTool failed");