0024048: "Basic Runtime Checks" option of VS projects should be equal to "RTC1"
authoribs <ibs@opencascade.com>
Fri, 12 Jul 2013 08:29:30 +0000 (12:29 +0400)
committeribs <ibs@opencascade.com>
Fri, 12 Jul 2013 08:29:30 +0000 (12:29 +0400)
tolreached initialized (src\ChFi3d\ChFi3d_Builder_6.cxx);
LocalTransition initialized in deb case (src\HatchGen\HatchGen_Hatcher.gxx);
vprev initialized (src\Blend\Blend_Walking_3.gxx);
uprev initialized (src\BRepBlend\BRepBlend_SurfRstLineBuilder.cxx);
lxp initialized (src\Interface\Interface_FloatWriter.cxx)
pBuff initialized (src\OSD\OSD_Process.cxx)
aPrefix initialized (src\RWStepBasic\RWStepBasic_RWSiUnitAndPlaneAngleUnit.cxx)
ier initialized AdvApp2Var/AdvApp2Var_ApproxF2var.cxx
FacRevolInfini initialized BRepFeat_MakePrism.cxx
default action of "switch" returned
nombre mas of chars was expanded to 1024 (had been 20). this expansion helps avoiding the error of conversion a float number to mas of chars: the size of mas is enough for converting float number now.
Changed status (todo ?) of tests: de step_5 A6 B3, de iges_3 A9

19 files changed:
src/AdvApp2Var/AdvApp2Var_ApproxF2var.cxx
src/BRepBlend/BRepBlend_SurfRstLineBuilder.cxx
src/BRepFeat/BRepFeat_MakePrism.cxx
src/Blend/Blend_Walking_3.gxx
src/ChFi3d/ChFi3d_Builder_6.cxx
src/HatchGen/HatchGen_Hatcher.gxx
src/IGESData/IGESData_GlobalSection.cxx
src/Interface/Interface_FloatWriter.cxx
src/OSD/OSD_Process.cxx
src/RWStepBasic/RWStepBasic_RWSiUnit.cxx
src/RWStepBasic/RWStepBasic_RWSiUnitAndLengthUnit.cxx
src/RWStepBasic/RWStepBasic_RWSiUnitAndMassUnit.cxx
src/RWStepBasic/RWStepBasic_RWSiUnitAndPlaneAngleUnit.cxx
src/RWStepBasic/RWStepBasic_RWSiUnitAndSolidAngleUnit.cxx
src/RWStepBasic/RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit.cxx
src/RWStepBasic/RWStepBasic_RWSiUnitAndTimeUnit.cxx
tests/de/iges_3/A9
tests/de/step_5/A6
tests/de/step_5/B3

index 6c1a77e..cf529d3 100755 (executable)
@@ -971,7 +971,7 @@ int mma1fer_(integer *,//ndimen,
   integer crvjac_dim1, crvjac_offset, i__1, i__2;
 
   /* Local variables */
-  integer idim, ncfja, ncfnw, ndses, ii, kk, ibb, ier;
+  integer idim, ncfja, ncfnw, ndses, ii, kk, ibb, ier = 0;
   integer nbr0;
 
 
@@ -6178,7 +6178,7 @@ int AdvApp2Var_ApproxF2var::mma2fnc_(integer *ndimen,
     doublereal uvpav[4]        /* was [2][2] */;
     integer nd, ii;
     integer ibb;
-    integer ier;
+    integer ier = 0;
     doublereal uv11[4] /* was [2][2] */;
   integer ncb1;
     doublereal eps3;
index 4906ae5..0b3e489 100755 (executable)
@@ -163,7 +163,7 @@ Standard_Integer BRepBlend_SurfRstLineBuilder::
   Standard_Boolean ok = Standard_False;
   Standard_Boolean byinter = (line->NbPoints() != 0), okinter = 0;
   Standard_Real distmin = RealLast();
-  Standard_Real uprev,vprev, prm, dist;
+  Standard_Real uprev = 0.0, vprev = 0.0, prm = 0.0, dist = 0.0;
 
   if(byinter) previousP.ParametersOnS(uprev,vprev);
   pt2d.SetCoord(sol(1),sol(2));
index ba3f39f..7453add 100755 (executable)
@@ -1136,18 +1136,22 @@ static Standard_Real HeightMax(const TopoDS_Shape& theSbase,
     if(!FacRevolInfini)
       BRepBndLib::Add(theSFrom,Box);
   }
-  if(!theSUntil.IsNull()) {
-    Standard_Boolean FacRevolInfini;
+  if(!theSUntil.IsNull()) 
+  {
+    Standard_Boolean FacRevolInfini = Standard_False;
     TopExp_Explorer exp;
     exp.Init(theSUntil, TopAbs_EDGE);
-    for(; exp.More(); exp.Next()) {
+    for(; exp.More(); exp.Next()) 
+    {
       TopExp_Explorer exp1;
       exp1.Init(exp.Current(), TopAbs_VERTEX);
-      if(!exp1.More()) {
-       FacRevolInfini = Standard_True;
-       break;
+      if(!exp1.More()) 
+      {
+             FacRevolInfini = Standard_True;
+             break;
       }
     }
+
     if(!FacRevolInfini)
       BRepBndLib::Add(theSUntil,Box);
   }
index 9c04898..bc662e4 100755 (executable)
@@ -29,7 +29,7 @@ Standard_Integer Blend_Walking::ArcToRecadre(const Standard_Boolean OnFirst,
   Standard_Boolean ok = Standard_False;
   Standard_Boolean byinter = (line->NbPoints() != 0), okinter = 0;
   Standard_Real distmin = RealLast();
-  Standard_Real uprev,vprev, prm, dist;
+  Standard_Real uprev = 0.0, vprev = 0.0, prm = 0.0, dist = 0.0;
   Handle(TheTopolTool) Iter;
 
   if (OnFirst) {
index 566af9e..8a950f6 100755 (executable)
@@ -463,7 +463,7 @@ Standard_Boolean ChFi3d_Builder::CompleteData
   gp_Pnt p;
   gp_Vec du,dv;
   Handle(Geom2d_Curve) c2dtrim;
-  Standard_Real tolreached;
+  Standard_Real tolreached = 1.e-5;
   if(!PC1.IsNull()){
     Handle(GeomAdaptor_HCurve) hcS1 = new GeomAdaptor_HCurve(Crv3d1);
     c2dtrim = new Geom2d_TrimmedCurve(PC1,UFirst,ULast);
index d715c49..498301a 100755 (executable)
@@ -748,11 +748,7 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
 
   const TheCurveH& CurveH = HatchingCurve (Point.Index()) ;
 
-  myIntersector.LocalGeometry(CurveH.Curve(),
-                             Point.Parameter(),
-                             Tangente2d,
-                             Normale2d,
-                             Courbure);
+  myIntersector.LocalGeometry(CurveH.Curve(), Point.Parameter(), Tangente2d, Normale2d, Courbure);
 
   Tangente.SetCoord (Tangente2d.X(), Tangente2d.Y(), 0.0) ;
   if (Courbure < Precision::Confusion()) {
@@ -767,10 +763,10 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
 #if TRACE_HATCHER
   printf("\n ----- Global Transition Complex Transition Reset \n");
   printf("\n       P:%+10.5g  Tg2d:%+10.5g , %+10.5g  N2d:%+10.5g , %+10.5g  Crv:%+10.5g\n\n",
-        Point.Parameter(),Tangente.X(),Tangente.Y(),Normale.X(),Normale.Y(),Courbure);
+  Point.Parameter(),Tangente.X(),Tangente.Y(),Normale.X(),Normale.Y(),Courbure);
 #endif
-  for (Standard_Integer IPntE = 1 ; IPntE <= Point.NbPoints() ; IPntE++) {
-
+  for (Standard_Integer IPntE = 1 ; IPntE <= Point.NbPoints() ; IPntE++) 
+  {
     const HatchGen_PointOnElement& PntE = Point.Point (IPntE) ;
     
     SegmentBegin = SegmentBegin || PntE.SegmentBeginning() ;
@@ -782,23 +778,22 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
     TopAbs_Orientation ElementOrientation = Element.Orientation() ;
     Standard_Boolean ToReverse = (ElementOrientation == TopAbs_REVERSED);
     Standard_Real Param ;
-    switch (PntE.Position()) {
-       case TopAbs_FORWARD  : {
-         Param = ToReverse ? CurveE.LastParameter() : CurveE.FirstParameter() ;
-         break ;
-       }
-       case TopAbs_INTERNAL : {
-         Param = PntE.Parameter() ;
-         break ;
-       }
-       case TopAbs_REVERSED : {
-         Param = ToReverse ? CurveE.FirstParameter() : CurveE.LastParameter() ;
-         break ;
-       }
-#ifndef DEB
-       default:
-         break;
-#endif
+    switch (PntE.Position()) 
+    {
+      case TopAbs_FORWARD  : 
+        Param = ToReverse ? CurveE.LastParameter() : CurveE.FirstParameter() ;
+        break ;
+
+      case TopAbs_INTERNAL : 
+        Param = PntE.Parameter() ;
+        break ;
+
+      case TopAbs_REVERSED : 
+        Param = ToReverse ? CurveE.FirstParameter() : CurveE.LastParameter() ;
+        break ;
+
+      default:
+        break;
     }
     
 //-- 
@@ -807,14 +802,8 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
 #endif
     Param = PntE.Parameter();
 
+    myIntersector.LocalGeometry(CurveE.Curve(), Param, Tangente2d, Normale2d, Courbure);
 
-    myIntersector.LocalGeometry(CurveE.Curve(),
-                               Param,
-                               Tangente2d,
-                               Normale2d,
-                               Courbure);
-
-    
 //-----------------------------------------------------------------------
 // Calcul de la transition locale. On suppose les relations suivantes :
 //  - Si l orientation de l element est INTERNAL ==> INTERNAL
@@ -823,64 +812,57 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
 //  - Sinon,       on a IN-OUT ou OUT-IN  ==> REVERSED/FORWARD 
 // Les deux dernieres conditions avec l element vu en FORWARD.    
 //-----------------------------------------------------------------------
-#ifndef DEB
     TopAbs_Orientation LocalTransition = TopAbs_EXTERNAL;
-#else
-    TopAbs_Orientation LocalTransition;
-#endif
-    if        (ElementOrientation == TopAbs_INTERNAL) {
+
+    if (ElementOrientation == TopAbs_INTERNAL) 
       LocalTransition = TopAbs_INTERNAL ;
-    } else if (ElementOrientation == TopAbs_EXTERNAL) {
+
+    else if (ElementOrientation == TopAbs_EXTERNAL) 
       LocalTransition = TopAbs_EXTERNAL ;
-    } else if (PntE.IntersectionType()        == HatchGen_TANGENT) {
-      if (PntE.Position() == TopAbs_INTERNAL) {
-       switch (PntE.StateBefore()) {
-         case TopAbs_IN  : LocalTransition = ToReverse ? TopAbs_EXTERNAL : TopAbs_INTERNAL ; break ;
-         case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_INTERNAL : TopAbs_EXTERNAL ; break ;
-#ifndef DEB
-         default:
-           break;
-#endif
-      }
-    } else {
-       switch (PntE.StateBefore()) {
-         case TopAbs_IN  : LocalTransition = ToReverse ? TopAbs_FORWARD  : TopAbs_REVERSED ; break ;
-         case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD  ; break ;
-#ifndef DEB
-         default:
-           break;
-#endif
-         }
+
+    else if (PntE.IntersectionType() == HatchGen_TANGENT) 
+    {
+      if (PntE.Position() == TopAbs_INTERNAL) 
+      {
+        switch (PntE.StateBefore()) 
+        {
+        case TopAbs_IN  : LocalTransition = ToReverse ? TopAbs_EXTERNAL : TopAbs_INTERNAL ; break ;
+        case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_INTERNAL : TopAbs_EXTERNAL ; break ;
+        default: break;
+        }
+      } 
+      else 
+      {
+        switch (PntE.StateBefore()) 
+        {
+        case TopAbs_IN  : LocalTransition = ToReverse ? TopAbs_FORWARD  : TopAbs_REVERSED ; break ;
+        case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD  ; break ;
+        default: break;
+        }
       }
-//  Modified by Sergey KHROMOV - Fri Jan  5 12:03:20 2001 Begin
-    } else {
-      switch (PntE.StateBefore()) {
-         case TopAbs_IN  : LocalTransition = ToReverse ? TopAbs_FORWARD  : TopAbs_REVERSED ; break ;
-         case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD  ; break ;
-#ifndef DEB
-         default:
-           break;
-#endif
+    } 
+    else 
+    {
+      switch (PntE.StateBefore()) 
+      {
+      case TopAbs_IN  : LocalTransition = ToReverse ? TopAbs_FORWARD  : TopAbs_REVERSED ; break ;
+      case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD  ; break ;
+      default: break;
       }
     }
-//  Modified by Sergey KHROMOV - Fri Jan  5 12:03:24 2001 End
 
 //-----------------------------------------------------------------------
 // Orientation de la tangente au point d interference.
 //-----------------------------------------------------------------------
-#ifndef DEB
     TopAbs_Orientation TangenteOrientation = TopAbs_FORWARD;
-#else
-    TopAbs_Orientation TangenteOrientation ;
-#endif
-    switch (PntE.Position()) {
-       case TopAbs_FORWARD  : TangenteOrientation = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD  ; break ;
-       case TopAbs_INTERNAL : TangenteOrientation = TopAbs_INTERNAL ; break ;
-       case TopAbs_REVERSED : TangenteOrientation = ToReverse ? TopAbs_FORWARD  : TopAbs_REVERSED ; break ;
-#ifndef DEB
-       default:
-         break;
-#endif
+    switch (PntE.Position()) 
+    {
+    case TopAbs_FORWARD  : TangenteOrientation = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD  ; break ;
+    case TopAbs_INTERNAL : TangenteOrientation = TopAbs_INTERNAL ; break ;
+    case TopAbs_REVERSED : TangenteOrientation = ToReverse ? TopAbs_FORWARD  : TopAbs_REVERSED ; break ;
+    
+    default: 
+      break;
     }
 
 //-----------------------------------------------------------------------
@@ -893,47 +875,26 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
       Tangente.SetCoord ( Tangente2d.X(),  Tangente2d.Y(), 0.0) ;
     }
     Normale.SetCoord ( Normale2d.X(),  Normale2d.Y(), 0.0) ;
-//  Modified by Sergey KHROMOV - Fri Jan  5 12:04:38 2001 Begin
-//     if (Courbure < Precision::Confusion()) {
-//       if (ToReverse) {
-//         Normale.SetCoord ( Tangente2d.Y(), -Tangente2d.X(), 0.0) ;
-//       } else {
-//     Normale.SetCoord (-Tangente2d.Y(),  Tangente2d.X(), 0.0) ;
-//       }
-//     } else {
-//       if (ToReverse) {
-//     Normale.SetCoord (-Normale2d.X(), -Normale2d.Y(), 0.0) ;
-//       } else {
-//     Normale.SetCoord ( Normale2d.X(),  Normale2d.Y(), 0.0) ;
-//       }
-//     }
-//  Modified by Sergey KHROMOV - Fri Jan  5 12:04:41 2001 End
+
 #if TRACE_HATCHER
     printf("\n \n----- Global Transition Complex Transition Compare" );
     char *str1 = " ??? ";
     char *str2 = " ??? ";
-    if(LocalTransition==TopAbs_INTERNAL) str1=" INTERNAL ";
-    if(LocalTransition==TopAbs_REVERSED) str1=" REVERSED ";
-    if(LocalTransition==TopAbs_FORWARD)  str1=" FORWARD  ";
+    if(LocalTransition == TopAbs_INTERNAL) str1=" INTERNAL ";
+    if(LocalTransition == TopAbs_REVERSED) str1=" REVERSED ";
+    if(LocalTransition == TopAbs_FORWARD)  str1=" FORWARD  ";
 
-    if(TangenteOrientation==TopAbs_INTERNAL) str2=" INTERNAL ";
-    if(TangenteOrientation==TopAbs_REVERSED) str2=" REVERSED ";
-    if(TangenteOrientation==TopAbs_FORWARD)  str2=" FORWARD  ";
+    if(TangenteOrientation == TopAbs_INTERNAL) str2=" INTERNAL ";
+    if(TangenteOrientation == TopAbs_REVERSED) str2=" REVERSED ";
+    if(TangenteOrientation == TopAbs_FORWARD)  str2=" FORWARD  ";
 
     printf("\n       P:%+10.5g  Tg2d:%+10.5g , %+10.5g  N2d:%+10.5g , %+10.5g  Crv:%+10.5g LocalTr:%s TangOrie:%s\n",
-          Param,Tangente.X(),Tangente.Y(),Normale.X(),Normale.Y(),Courbure,str1,str2);
+    Param,Tangente.X(),Tangente.Y(),Normale.X(),Normale.Y(),Courbure,str1,str2);
 #endif
 
-#if 1 
     ComplexTransition.Compare (Precision::Angular(),
-                              Tangente, Normale, Courbure,
-                              LocalTransition, TangenteOrientation) ;
-#else 
-    ComplexTransition.Compare (Precision::Angular(),
-                              Tangente, Normale, Courbure,
-                              LocalTransition, TopAbs_INTERNAL) ;
-
-#endif
+                               Tangente, Normale, Courbure,
+                               LocalTransition, TangenteOrientation) ;
   }
 
   switch (ComplexTransition.StateBefore()) {
index cce3f1e..13dc433 100755 (executable)
@@ -290,9 +290,9 @@ void IGESData_GlobalSection::CopyRefs ()
 
 Handle(Interface_ParamSet) IGESData_GlobalSection::Params () const
 {
-  char vide[1];  char uncar[2];  char nombre[20];  char text[200];
+  char vide[1];  char uncar[2];  char nombre[1024];  char text[200];
   Standard_Integer lt;
-  vide[0] = uncar[1] = '\0';  uncar[0] = ',';
+  vide[0] = uncar[1] = nombre[0] = '\0';  uncar[0] = ',';
   Handle(Interface_ParamSet) res  = new Interface_ParamSet(26);  //gka 19.01.99
   if (theSeparator == ',') res->Append (vide,0,Interface_ParamVoid,0);
   else { uncar[0] = theSeparator; res->Append (uncar,1,Interface_ParamMisc,0); }
index 9e3976f..afba0c0 100755 (executable)
@@ -102,47 +102,51 @@ Standard_Integer Interface_FloatWriter::Convert (const Standard_Real val,
                                                 const Standard_CString rangeform)
 {
 //    Valeur flottante, expurgee de "0000" qui trainent et de "E+00"
-//  char lval[20];
-  char lxp[6], *pText; 
-  int i0,j0=0;
+  const Standard_Integer anMasSize = 5; // change 6 to 5: index 5 is not used below
+  char lxp[anMasSize], *pText; 
+  int i0, j0 = 0;
+
+  for (Standard_Integer i = 0; i < anMasSize; ++i)
+    lxp[i] = '\0';
 
-  lxp[0] = lxp[4] = '\0';    
   pText=(char *)text;
   //
-  if ( (val >= R1 && val <  R2) ||
-      (val <= -R1 && val > -R2) ) {
+  if ( (val >= R1 && val <  R2) || (val <= -R1 && val > -R2) ) 
     Sprintf(pText,rangeform,val);
-  }
-  else {
+  else 
     Sprintf(pText,mainform,val);
-  }
   
-  if (zsup) {
-    for (int i = 0; i < 16; i ++) {
+  if (zsup) 
+  {
+    for (int i = 0; i < 16; i ++) 
+    {
       i0 = i;
-      if (text[i] == 'e' || text[i] == 'E') {
-       lxp[0] = 'E'; 
-       lxp[1] = text[i+1]; 
-       lxp[2] = text[i+2];
-       lxp[3] = text[i+3];  
-       lxp[4] = text[i+4];
-       if (lxp[1] == '+' && lxp[2] == '0' && lxp[3] == '0' &&  lxp[4] == '\0') {
-         lxp[0] = '\0';
-       }
-       pText[i] = '\0';
-      }
-      if (text[i] == '\0') {
-       break;
+      if (text[i] == 'e' || text[i] == 'E') 
+      {
+             lxp[0] = 'E'; 
+             lxp[1] = text[i+1]; 
+             lxp[2] = text[i+2];
+             lxp[3] = text[i+3];  
+             lxp[4] = text[i+4];
+             
+        if (lxp[1] == '+' && lxp[2] == '0' && lxp[3] == '0' &&  lxp[4] == '\0') 
+               lxp[0] = '\0';
+
+             pText[i] = '\0';
       }
+      if (text[i] == '\0') break;
     }
     //#52 rln 23.12.98 converting 1e-07 throws exception
-    for (int j = i0-1; j >= 0; j --) {
+    for (int j = i0-1; j >= 0; j --) 
+    {
       j0 = j;  
-      if (text[j] != '0') {
-       break;
-      }
+
+      if (text[j] != '0') 
+             break;
+
       pText[j] = '\0';
     }
+
     pText[j0+1] = lxp[0]; 
     pText[j0+2] = lxp[1]; 
     pText[j0+3] = lxp[2];
index 9086b79..8ce6b52 100755 (executable)
@@ -384,25 +384,18 @@ Standard_Integer OSD_Process :: ProcessId () {
 
 OSD_Path OSD_Process :: CurrentDirectory () {
 
- Standard_PCharacter pBuff;
- DWORD            dwSize = 0;
- OSD_Path         retVal;
+  OSD_Path anCurrentDirectory;
 
dwSize = GetCurrentDirectory ( dwSize, pBuff );
pBuff  = new Standard_Character[ dwSize ];
 DWORD dwSize = PATHLEN + 1;
 Standard_PCharacter pBuff = new char[dwSize];
 
- if (   (  dwSize = GetCurrentDirectory ( dwSize, pBuff )  ) == NULL   )
-
-  _osd_wnt_set_error ( myError, OSD_WProcess );
-
- else
-  retVal = OSD_Path ( pBuff );
- delete[] pBuff;
-
- return retVal;
+  if ( GetCurrentDirectory(dwSize, pBuff) > 0 )
+    anCurrentDirectory = OSD_Path ( pBuff );
+  else
+    _osd_wnt_set_error ( myError, OSD_WProcess );
  
+  delete[] pBuff;
+  return anCurrentDirectory;
 }  // end OSD_Process :: CurrentDirectory
 
 void OSD_Process :: SetCurrentDirectory ( const OSD_Path& where ) {
index 6cc0d4c..ef25ee5 100755 (executable)
@@ -84,7 +84,7 @@ void RWStepBasic_RWSiUnit::ReadStep(const Handle(StepData_StepReaderData)& data,
   data->CheckDerived(num,1,"dimensions",ach,Standard_False);
 
   // --- own field : prefix ---
-  StepBasic_SiPrefix aPrefix;
+  StepBasic_SiPrefix aPrefix = StepBasic_spExa;
   Standard_Boolean hasAprefix = Standard_False;
   if (data->IsParamDefined(num,2)) {
     if (data->ParamType(num,2) == Interface_ParamEnum) {
index e736148..5464924 100755 (executable)
@@ -60,7 +60,7 @@ void RWStepBasic_RWSiUnitAndLengthUnit::ReadStep(const Handle(StepData_StepReade
 
   // --- field : prefix ---
   RWStepBasic_RWSiUnit reader;
-  StepBasic_SiPrefix aPrefix;
+  StepBasic_SiPrefix aPrefix = StepBasic_spExa;
   Standard_Boolean hasAprefix = Standard_False;
   if (data->IsParamDefined(num,1)) {
     if (data->ParamType(num,1) == Interface_ParamEnum) {
index fa997df..0deed36 100755 (executable)
@@ -69,7 +69,7 @@ void RWStepBasic_RWSiUnitAndMassUnit::ReadStep(const Handle(StepData_StepReaderD
 
   // --- field : prefix ---
   RWStepBasic_RWSiUnit reader;
-  StepBasic_SiPrefix aPrefix;
+  StepBasic_SiPrefix aPrefix = StepBasic_spExa;
   Standard_Boolean hasAprefix = Standard_False;
   if (data->IsParamDefined(num,1)) {
     if (data->ParamType(num,1) == Interface_ParamEnum) {
index 0e7d46f..4e603ce 100755 (executable)
@@ -53,7 +53,7 @@ void RWStepBasic_RWSiUnitAndPlaneAngleUnit::ReadStep(const Handle(StepData_StepR
 
   // --- field : prefix ---
   RWStepBasic_RWSiUnit reader;
-  StepBasic_SiPrefix aPrefix;
+  StepBasic_SiPrefix aPrefix = StepBasic_spExa; // by default
   Standard_Boolean hasAprefix = Standard_False;
   if (data->IsParamDefined(num,1)) {
     if (data->ParamType(num,1) == Interface_ParamEnum) {
index ee36aaa..d2d122c 100755 (executable)
@@ -49,7 +49,7 @@ void RWStepBasic_RWSiUnitAndSolidAngleUnit::ReadStep (const Handle(StepData_Step
   
   // --- field : prefix ---
   RWStepBasic_RWSiUnit reader;
-  StepBasic_SiPrefix aPrefix;
+  StepBasic_SiPrefix aPrefix = StepBasic_spExa;
   Standard_Boolean hasAprefix = Standard_False;
   if (data->IsParamDefined(num,1)) {
     if (data->ParamType(num,1) == Interface_ParamEnum) {
index 656af63..17f0194 100755 (executable)
@@ -61,7 +61,7 @@ void RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit::ReadStep
   
   // --- field : prefix ---
   RWStepBasic_RWSiUnit reader;
-  StepBasic_SiPrefix aPrefix;
+  StepBasic_SiPrefix aPrefix = StepBasic_spExa;
   Standard_Boolean hasAprefix = Standard_False;
   if (data->IsParamDefined(num,1)) {
     if (data->ParamType(num,1) == Interface_ParamEnum) {
index 1a9db85..abd4a2e 100755 (executable)
@@ -60,7 +60,7 @@ void RWStepBasic_RWSiUnitAndTimeUnit::ReadStep (const Handle(StepData_StepReader
 
   // --- field : prefix ---
   RWStepBasic_RWSiUnit reader;
-  StepBasic_SiPrefix aPrefix;
+  StepBasic_SiPrefix aPrefix = StepBasic_spExa;
   Standard_Boolean hasAprefix = Standard_False;
   if (data->IsParamDefined(num,1)) {
     if (data->ParamType(num,1) == Interface_ParamEnum) {
index b8d9014..1f9d6bd 100644 (file)
@@ -4,6 +4,7 @@ puts "TODO CR23096 ALL: NBSHAPES : Faulty"
 puts "TODO CR23096 ALL: LABELS : Faulty" 
 puts "TODO ?CR23096 ALL: CHECKSHAPE : Faulty" 
 puts "TODO ?CR23096 ALL: Error : 5 differences with reference data found"
+puts "TODO ?OCC24048 ALL: Error : 3 differences with reference data found"
 
 set filename BUC60291.igs
 
index 22f986d..148b667 100644 (file)
@@ -1,4 +1,5 @@
 # !!!! This file is generated automatically, do not edit manually! See end script
+puts "TODO ?OCC24048 ALL: Error : 1 differences with reference data found"
 set filename r1001_ac.stp
 
 set ref_data {
index ec9416e..82b9a85 100644 (file)
@@ -1,4 +1,6 @@
 # !!!! This file is generated automatically, do not edit manually! See end script
+puts "TODO ?OCC24048 ALL: NBSHAPES : Faulty"
+puts "TODO ?OCC24048 ALL: Error : 4 differences with reference data found"
 set filename tr10_r1001_ac.stp
 
 set ref_data {