#include <Geom_Plane.hxx>
#include <Geom_SphericalSurface.hxx>
#include <Geom_Surface.hxx>
+#include <Geom_SurfaceOfRevolution.hxx>
#include <Geom_ToroidalSurface.hxx>
#include <GeomAbs_Shape.hxx>
#include <GeomAdaptor_HSurface.hxx>
// abv 10.07.00 pr1sy.stp: vertex_loop can be wrong; so just make natural bounds
if (GeomSurf->IsKind (STANDARD_TYPE(Geom_SphericalSurface)) ||
- GeomSurf->IsKind (STANDARD_TYPE(Geom_BSplineSurface)) )
+ GeomSurf->IsKind (STANDARD_TYPE(Geom_BSplineSurface)) ||
+ GeomSurf->IsKind (STANDARD_TYPE(Geom_SurfaceOfRevolution)))
{
if (NbBnd ==1 || FaceBound->IsKind(STANDARD_TYPE(StepShape_FaceOuterBound))) {
BRepBuilderAPI_MakeFace mf (GeomSurf, Precision());
--- /dev/null
+puts "=========="
+puts "OCC29945"
+puts "=========="
+puts ""
+#########################################################
+# Export body of revolution to STEP breaks the shape
+#########################################################
+
+testreadstep [locate_data_file bug29945.stp] res
+
+checkshape res