Fix for TopoShapeFacePyImp.cpp for older OCC versions

This commit is contained in:
jriegel 2013-02-17 15:44:49 +01:00
parent 82905f7be2
commit bbac07e846

View File

@ -209,9 +209,11 @@ int TopoShapeFacePy::PyInit(PyObject* args, PyObject* /*kwd*/)
case BRepBuilderAPI_ParametersOutOfRange:
Standard_Failure::Raise("Parameters out of range");
break;
#if OCC_VERSION_HEX >= 0x060502
case BRepBuilderAPI_SurfaceNotC2:
Standard_Failure::Raise("Surface not C2");
break;
#endif
default:
Standard_Failure::Raise("Unknown failure");
break;