From d55ae180a9fc8c1b368e7f8abadc6bb3a60f7dbf Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 12 Jan 2005 11:35:54 +0000 Subject: [PATCH] Fix problem with cyl2complementary.py script. Done by SKL --- src/GEOMAlgo/BlockFix.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) { -- 2.39.2