1 // Created on: 1995-01-03
2 // Created by: Frederic MAUPAS
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 #include <StepToTopoDS.hxx>
19 #include <TCollection_HAsciiString.hxx>
21 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeBuilderError(const StepToTopoDS_BuilderError Error)
23 Handle(TCollection_HAsciiString) mess;
26 case StepToTopoDS_BuilderDone:
28 mess = new TCollection_HAsciiString("Builder Done");
31 case StepToTopoDS_BuilderOther:
33 mess = new TCollection_HAsciiString("Builder Other");
40 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeShellError(const StepToTopoDS_TranslateShellError Error)
42 Handle(TCollection_HAsciiString) mess;
45 case StepToTopoDS_TranslateShellDone:
47 mess = new TCollection_HAsciiString("Translate Shell Done");
50 case StepToTopoDS_TranslateShellOther:
52 mess = new TCollection_HAsciiString("Translate Shell Other");
59 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeFaceError(const StepToTopoDS_TranslateFaceError Error)
61 Handle(TCollection_HAsciiString) mess;
64 case StepToTopoDS_TranslateFaceDone:
66 mess = new TCollection_HAsciiString("Translate Face Done");
69 case StepToTopoDS_TranslateFaceOther:
71 mess = new TCollection_HAsciiString("Translate Face Other");
78 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeEdgeError(const StepToTopoDS_TranslateEdgeError Error)
80 Handle(TCollection_HAsciiString) mess;
83 case StepToTopoDS_TranslateEdgeDone:
85 mess = new TCollection_HAsciiString("Translate Edge Done");
88 case StepToTopoDS_TranslateEdgeOther:
90 mess = new TCollection_HAsciiString("Translate Edge Other");
97 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeVertexError(const StepToTopoDS_TranslateVertexError Error)
99 Handle(TCollection_HAsciiString) mess;
102 case StepToTopoDS_TranslateVertexDone:
104 mess = new TCollection_HAsciiString("Translate Vertex Done");
107 case StepToTopoDS_TranslateVertexOther:
109 mess = new TCollection_HAsciiString("Translate Vertex Other");
116 Handle(TCollection_HAsciiString) StepToTopoDS::DecodeVertexLoopError(const StepToTopoDS_TranslateVertexLoopError Error)
118 Handle(TCollection_HAsciiString) mess;
121 case StepToTopoDS_TranslateVertexLoopDone:
123 mess = new TCollection_HAsciiString("Translate VertexLoop Done");
126 case StepToTopoDS_TranslateVertexLoopOther:
128 mess = new TCollection_HAsciiString("Translate VertexLoop Other");
135 Handle(TCollection_HAsciiString) StepToTopoDS::DecodePolyLoopError(const StepToTopoDS_TranslatePolyLoopError Error)
137 Handle(TCollection_HAsciiString) mess;
140 case StepToTopoDS_TranslatePolyLoopDone:
142 mess = new TCollection_HAsciiString("Translate PolyLoop Done");
145 case StepToTopoDS_TranslatePolyLoopOther:
147 mess = new TCollection_HAsciiString("Translate PolyLoop Other");
155 Standard_CString StepToTopoDS::DecodeGeometricToolError(const StepToTopoDS_GeometricToolError Error)
157 Standard_CString mess="";
160 case StepToTopoDS_GeometricToolDone:
162 mess = Standard_CString(" Geometric Tool is done");
165 case StepToTopoDS_GeometricToolIsDegenerated:
167 mess = Standard_CString(" an Edge is degenerated");
170 case StepToTopoDS_GeometricToolHasNoPCurve:
172 mess = Standard_CString(" SurfaceCurve does not contain a PCurve lying on the BasisSurface");
175 case StepToTopoDS_GeometricToolWrong3dParameters:
177 mess = Standard_CString(" the update of 3D-Parameters failed");
180 case StepToTopoDS_GeometricToolNoProjectiOnCurve:
182 mess = Standard_CString(" the projection of a VertexPoint on the curve3d failed");
185 case StepToTopoDS_GeometricToolOther:
187 mess = Standard_CString(" GeometricTool failed");