1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0029945: Export body of revolution to STEP breaks the shape

Now vertex loops on surfaces of revolution are imported from STEP format in the same way as on spheres and b-spline surfaces: in case of a single vertex loop neutral bounds will be used.
This commit is contained in:
ika
2018-07-11 17:29:34 +03:00
committed by bugmaster
parent 1f886fae1b
commit df6f165a2b
2 changed files with 14 additions and 1 deletions

View File

@@ -37,6 +37,7 @@
#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>
@@ -246,7 +247,8 @@ void StepToTopoDS_TranslateFace::Init
// 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());