MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / gce_ErrorStatusText

Function gce_ErrorStatusText

src/Mod/Part/App/Geometry.cpp:195–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195const char* gce_ErrorStatusText(gce_ErrorType et)
196{
197 switch (et) {
198 case gce_Done:
199 return "Construction was successful";
200 case gce_ConfusedPoints:
201 return "Two points are coincident";
202 case gce_NegativeRadius:
203 return "Radius value is negative";
204 case gce_ColinearPoints:
205 return "Three points are collinear";
206 case gce_IntersectionError:
207 return "Intersection cannot be computed";
208 case gce_NullAxis:
209 return "Axis is undefined";
210 case gce_NullAngle:
211 return "Angle value is invalid (usually null)";
212 case gce_NullRadius:
213 return "Radius is null";
214 case gce_InvertAxis:
215 return "Axis value is invalid";
216 case gce_BadAngle:
217 return "Angle value is invalid";
218 case gce_InvertRadius:
219 return "Radius value is incorrect (usually with respect to another radius)";
220 case gce_NullFocusLength:
221 return "Focal distance is null";
222 case gce_NullVector:
223 return "Vector is null";
224 case gce_BadEquation:
225 return "Coefficients are incorrect (applies to the equation of a geometric object)";
226 default:
227 return "Creation of geometry failed";
228 }
229}
230
231// ---------------------------------------------------------------
232

Callers 15

PyInitMethod · 0.70
PyInitMethod · 0.70
PyInitMethod · 0.70
PyInitMethod · 0.70
PyInitMethod · 0.70
RestoreMethod · 0.70
setPointsMethod · 0.70
PyInitMethod · 0.70
PyInitMethod · 0.70
PyInitMethod · 0.70
PyInitMethod · 0.70
PyInitMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected