THROW_SALOME_CORBA_EXCEPTION("Error in reading import file", SALOME::BAD_PARAM); }
MESSAGE("ImportIGES : all Geometry Transfer" << endl ) ;
- //OCC 5.1.2 porting
-// aReader.Clear();
-// aReader.TransferRoots(false);
+#if OCC_VERSION_MAJOR >= 5
aReader.ClearShapes();
aReader.TransferRoots();
-
+#else
+ aReader.Clear();
+ aReader.TransferRoots(false);
+#endif
MESSAGE("ImportIGES : count of shapes produced = " << aReader.NbShapes() << endl );
TopoDS_Shape shape = aReader.OneShape();
fill.Add(E);
}
for (int i = 1;i<=fill.NbContours();i++) {
+#if OCC_VERSION_MAJOR >= 5
fill.SetRadius(radius,i,i);
+#else
+ fill.SetRadius(radius,i);
+#endif
}
tds = fill.Shape();
}
}
for (int i = 1;i<=fill.NbContours();i++) {
+#if OCC_VERSION_MAJOR >= 5
fill.SetRadius(radius,i,i);
+#else
+ fill.SetRadius(radius,i);
+#endif
}
tds = fill.Shape();
}
for(int i = 1; i <= fill.NbContours(); i++) {
try {
+#if OCC_VERSION_MAJOR >= 5
fill.SetRadius(myRadius,i,i);
+#else
+ fill.SetRadius(myRadius,i);
+#endif
}
catch(Standard_Failure) {
QApplication::restoreOverrideCursor();