From: jfa Date: Wed, 12 Jan 2005 11:35:54 +0000 (+0000) Subject: Fix problem with cyl2complementary.py script. Done by SKL X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d55ae180a9fc8c1b368e7f8abadc6bb3a60f7dbf;p=modules%2Fgeom.git Fix problem with cyl2complementary.py script. Done by SKL --- diff --git a/src/GEOMAlgo/BlockFix.cxx b/src/GEOMAlgo/BlockFix.cxx index b359031f7..be4d48f62 100644 --- a/src/GEOMAlgo/BlockFix.cxx +++ b/src/GEOMAlgo/BlockFix.cxx @@ -60,7 +60,8 @@ static void FixResult(const TopoDS_Shape& result, TopLoc_Location L; Handle(Geom_Surface) Surf = BRep_Tool::Surface(aFace,L); - if(Surf->IsKind(STANDARD_TYPE(Geom_SphericalSurface))) { + if (Surf->IsKind(STANDARD_TYPE(Geom_SphericalSurface)) || + Surf->IsKind(STANDARD_TYPE(Geom_CylindricalSurface))) { Standard_Integer nbWires = 0; for (TopExp_Explorer ex_w(aFace,TopAbs_WIRE); ex_w.More(); ex_w.Next()) {