Fix problem with cyl2complementary.py script. Done by SKL

This commit is contained in:
jfa 2005-01-12 11:35:54 +00:00
parent cb0f7b5cc8
commit d55ae180a9

View File

@ -60,7 +60,8 @@ static void FixResult(const TopoDS_Shape& result,
TopLoc_Location L; TopLoc_Location L;
Handle(Geom_Surface) Surf = BRep_Tool::Surface(aFace,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; Standard_Integer nbWires = 0;
for (TopExp_Explorer ex_w(aFace,TopAbs_WIRE); ex_w.More(); ex_w.Next()) { for (TopExp_Explorer ex_w(aFace,TopAbs_WIRE); ex_w.More(); ex_w.Next()) {