]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix problem with cyl2complementary.py script. Done by SKL
authorjfa <jfa@opencascade.com>
Wed, 12 Jan 2005 11:35:54 +0000 (11:35 +0000)
committerjfa <jfa@opencascade.com>
Wed, 12 Jan 2005 11:35:54 +0000 (11:35 +0000)
src/GEOMAlgo/BlockFix.cxx

index b359031f7570dfd0732a5eb4a63b0189b9277b4c..be4d48f62daa93dae76ed6d243cc1dc906d5d58b 100644 (file)
@@ -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()) {