1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00

0024048: "Basic Runtime Checks" option of VS projects should be equal to "RTC1"

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
This commit is contained in:
ibs 2013-07-12 12:29:30 +04:00
parent 96a85238fb
commit a8195d65ba
19 changed files with 140 additions and 174 deletions

View File

@ -971,7 +971,7 @@ int mma1fer_(integer *,//ndimen,
integer crvjac_dim1, crvjac_offset, i__1, i__2; integer crvjac_dim1, crvjac_offset, i__1, i__2;
/* Local variables */ /* Local variables */
integer idim, ncfja, ncfnw, ndses, ii, kk, ibb, ier; integer idim, ncfja, ncfnw, ndses, ii, kk, ibb, ier = 0;
integer nbr0; integer nbr0;
@ -6178,7 +6178,7 @@ int AdvApp2Var_ApproxF2var::mma2fnc_(integer *ndimen,
doublereal uvpav[4] /* was [2][2] */; doublereal uvpav[4] /* was [2][2] */;
integer nd, ii; integer nd, ii;
integer ibb; integer ibb;
integer ier; integer ier = 0;
doublereal uv11[4] /* was [2][2] */; doublereal uv11[4] /* was [2][2] */;
integer ncb1; integer ncb1;
doublereal eps3; doublereal eps3;

View File

@ -163,7 +163,7 @@ Standard_Integer BRepBlend_SurfRstLineBuilder::
Standard_Boolean ok = Standard_False; Standard_Boolean ok = Standard_False;
Standard_Boolean byinter = (line->NbPoints() != 0), okinter = 0; Standard_Boolean byinter = (line->NbPoints() != 0), okinter = 0;
Standard_Real distmin = RealLast(); 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); if(byinter) previousP.ParametersOnS(uprev,vprev);
pt2d.SetCoord(sol(1),sol(2)); pt2d.SetCoord(sol(1),sol(2));

View File

@ -1136,18 +1136,22 @@ static Standard_Real HeightMax(const TopoDS_Shape& theSbase,
if(!FacRevolInfini) if(!FacRevolInfini)
BRepBndLib::Add(theSFrom,Box); BRepBndLib::Add(theSFrom,Box);
} }
if(!theSUntil.IsNull()) { if(!theSUntil.IsNull())
Standard_Boolean FacRevolInfini; {
Standard_Boolean FacRevolInfini = Standard_False;
TopExp_Explorer exp; TopExp_Explorer exp;
exp.Init(theSUntil, TopAbs_EDGE); exp.Init(theSUntil, TopAbs_EDGE);
for(; exp.More(); exp.Next()) { for(; exp.More(); exp.Next())
{
TopExp_Explorer exp1; TopExp_Explorer exp1;
exp1.Init(exp.Current(), TopAbs_VERTEX); exp1.Init(exp.Current(), TopAbs_VERTEX);
if(!exp1.More()) { if(!exp1.More())
FacRevolInfini = Standard_True; {
break; FacRevolInfini = Standard_True;
break;
} }
} }
if(!FacRevolInfini) if(!FacRevolInfini)
BRepBndLib::Add(theSUntil,Box); BRepBndLib::Add(theSUntil,Box);
} }

View File

@ -29,7 +29,7 @@ Standard_Integer Blend_Walking::ArcToRecadre(const Standard_Boolean OnFirst,
Standard_Boolean ok = Standard_False; Standard_Boolean ok = Standard_False;
Standard_Boolean byinter = (line->NbPoints() != 0), okinter = 0; Standard_Boolean byinter = (line->NbPoints() != 0), okinter = 0;
Standard_Real distmin = RealLast(); 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; Handle(TheTopolTool) Iter;
if (OnFirst) { if (OnFirst) {

View File

@ -463,7 +463,7 @@ Standard_Boolean ChFi3d_Builder::CompleteData
gp_Pnt p; gp_Pnt p;
gp_Vec du,dv; gp_Vec du,dv;
Handle(Geom2d_Curve) c2dtrim; Handle(Geom2d_Curve) c2dtrim;
Standard_Real tolreached; Standard_Real tolreached = 1.e-5;
if(!PC1.IsNull()){ if(!PC1.IsNull()){
Handle(GeomAdaptor_HCurve) hcS1 = new GeomAdaptor_HCurve(Crv3d1); Handle(GeomAdaptor_HCurve) hcS1 = new GeomAdaptor_HCurve(Crv3d1);
c2dtrim = new Geom2d_TrimmedCurve(PC1,UFirst,ULast); c2dtrim = new Geom2d_TrimmedCurve(PC1,UFirst,ULast);

View File

@ -748,11 +748,7 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
const TheCurveH& CurveH = HatchingCurve (Point.Index()) ; const TheCurveH& CurveH = HatchingCurve (Point.Index()) ;
myIntersector.LocalGeometry(CurveH.Curve(), myIntersector.LocalGeometry(CurveH.Curve(), Point.Parameter(), Tangente2d, Normale2d, Courbure);
Point.Parameter(),
Tangente2d,
Normale2d,
Courbure);
Tangente.SetCoord (Tangente2d.X(), Tangente2d.Y(), 0.0) ; Tangente.SetCoord (Tangente2d.X(), Tangente2d.Y(), 0.0) ;
if (Courbure < Precision::Confusion()) { if (Courbure < Precision::Confusion()) {
@ -767,10 +763,10 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
#if TRACE_HATCHER #if TRACE_HATCHER
printf("\n ----- Global Transition Complex Transition Reset \n"); 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", 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 #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) ; const HatchGen_PointOnElement& PntE = Point.Point (IPntE) ;
SegmentBegin = SegmentBegin || PntE.SegmentBeginning() ; SegmentBegin = SegmentBegin || PntE.SegmentBeginning() ;
@ -782,23 +778,22 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
TopAbs_Orientation ElementOrientation = Element.Orientation() ; TopAbs_Orientation ElementOrientation = Element.Orientation() ;
Standard_Boolean ToReverse = (ElementOrientation == TopAbs_REVERSED); Standard_Boolean ToReverse = (ElementOrientation == TopAbs_REVERSED);
Standard_Real Param ; Standard_Real Param ;
switch (PntE.Position()) { switch (PntE.Position())
case TopAbs_FORWARD : { {
Param = ToReverse ? CurveE.LastParameter() : CurveE.FirstParameter() ; case TopAbs_FORWARD :
break ; Param = ToReverse ? CurveE.LastParameter() : CurveE.FirstParameter() ;
} break ;
case TopAbs_INTERNAL : {
Param = PntE.Parameter() ; case TopAbs_INTERNAL :
break ; Param = PntE.Parameter() ;
} break ;
case TopAbs_REVERSED : {
Param = ToReverse ? CurveE.FirstParameter() : CurveE.LastParameter() ; case TopAbs_REVERSED :
break ; Param = ToReverse ? CurveE.FirstParameter() : CurveE.LastParameter() ;
} break ;
#ifndef DEB
default: default:
break; break;
#endif
} }
//-- //--
@ -807,13 +802,7 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
#endif #endif
Param = PntE.Parameter(); 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 : // Calcul de la transition locale. On suppose les relations suivantes :
@ -823,64 +812,57 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
// - Sinon, on a IN-OUT ou OUT-IN ==> REVERSED/FORWARD // - Sinon, on a IN-OUT ou OUT-IN ==> REVERSED/FORWARD
// Les deux dernieres conditions avec l element vu en FORWARD. // Les deux dernieres conditions avec l element vu en FORWARD.
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
#ifndef DEB
TopAbs_Orientation LocalTransition = TopAbs_EXTERNAL; TopAbs_Orientation LocalTransition = TopAbs_EXTERNAL;
#else
TopAbs_Orientation LocalTransition; if (ElementOrientation == TopAbs_INTERNAL)
#endif
if (ElementOrientation == TopAbs_INTERNAL) {
LocalTransition = TopAbs_INTERNAL ; LocalTransition = TopAbs_INTERNAL ;
} else if (ElementOrientation == TopAbs_EXTERNAL) {
else if (ElementOrientation == TopAbs_EXTERNAL)
LocalTransition = TopAbs_EXTERNAL ; LocalTransition = TopAbs_EXTERNAL ;
} else if (PntE.IntersectionType() == HatchGen_TANGENT) {
if (PntE.Position() == TopAbs_INTERNAL) { else if (PntE.IntersectionType() == HatchGen_TANGENT)
switch (PntE.StateBefore()) { {
case TopAbs_IN : LocalTransition = ToReverse ? TopAbs_EXTERNAL : TopAbs_INTERNAL ; break ; if (PntE.Position() == TopAbs_INTERNAL)
case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_INTERNAL : TopAbs_EXTERNAL ; break ; {
#ifndef DEB switch (PntE.StateBefore())
default: {
break; case TopAbs_IN : LocalTransition = ToReverse ? TopAbs_EXTERNAL : TopAbs_INTERNAL ; break ;
#endif case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_INTERNAL : TopAbs_EXTERNAL ; break ;
default: break;
}
} }
} else { else
switch (PntE.StateBefore()) { {
case TopAbs_IN : LocalTransition = ToReverse ? TopAbs_FORWARD : TopAbs_REVERSED ; break ; switch (PntE.StateBefore())
case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD ; break ; {
#ifndef DEB case TopAbs_IN : LocalTransition = ToReverse ? TopAbs_FORWARD : TopAbs_REVERSED ; break ;
default: case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD ; break ;
break; default: break;
#endif }
} }
} }
// Modified by Sergey KHROMOV - Fri Jan 5 12:03:20 2001 Begin else
} else { {
switch (PntE.StateBefore()) { switch (PntE.StateBefore())
case TopAbs_IN : LocalTransition = ToReverse ? TopAbs_FORWARD : TopAbs_REVERSED ; break ; {
case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD ; break ; case TopAbs_IN : LocalTransition = ToReverse ? TopAbs_FORWARD : TopAbs_REVERSED ; break ;
#ifndef DEB case TopAbs_OUT : LocalTransition = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD ; break ;
default: default: break;
break;
#endif
} }
} }
// Modified by Sergey KHROMOV - Fri Jan 5 12:03:24 2001 End
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Orientation de la tangente au point d interference. // Orientation de la tangente au point d interference.
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
#ifndef DEB
TopAbs_Orientation TangenteOrientation = TopAbs_FORWARD; TopAbs_Orientation TangenteOrientation = TopAbs_FORWARD;
#else switch (PntE.Position())
TopAbs_Orientation TangenteOrientation ; {
#endif case TopAbs_FORWARD : TangenteOrientation = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD ; break ;
switch (PntE.Position()) { case TopAbs_INTERNAL : TangenteOrientation = TopAbs_INTERNAL ; break ;
case TopAbs_FORWARD : TangenteOrientation = ToReverse ? TopAbs_REVERSED : TopAbs_FORWARD ; break ; case TopAbs_REVERSED : TangenteOrientation = ToReverse ? TopAbs_FORWARD : TopAbs_REVERSED ; break ;
case TopAbs_INTERNAL : TangenteOrientation = TopAbs_INTERNAL ; break ;
case TopAbs_REVERSED : TangenteOrientation = ToReverse ? TopAbs_FORWARD : TopAbs_REVERSED ; break ; default:
#ifndef DEB break;
default:
break;
#endif
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
@ -893,47 +875,26 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
Tangente.SetCoord ( Tangente2d.X(), Tangente2d.Y(), 0.0) ; Tangente.SetCoord ( Tangente2d.X(), Tangente2d.Y(), 0.0) ;
} }
Normale.SetCoord ( Normale2d.X(), Normale2d.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 #if TRACE_HATCHER
printf("\n \n----- Global Transition Complex Transition Compare" ); printf("\n \n----- Global Transition Complex Transition Compare" );
char *str1 = " ??? "; char *str1 = " ??? ";
char *str2 = " ??? "; char *str2 = " ??? ";
if(LocalTransition==TopAbs_INTERNAL) str1=" INTERNAL "; if(LocalTransition == TopAbs_INTERNAL) str1=" INTERNAL ";
if(LocalTransition==TopAbs_REVERSED) str1=" REVERSED "; if(LocalTransition == TopAbs_REVERSED) str1=" REVERSED ";
if(LocalTransition==TopAbs_FORWARD) str1=" FORWARD "; if(LocalTransition == TopAbs_FORWARD) str1=" FORWARD ";
if(TangenteOrientation==TopAbs_INTERNAL) str2=" INTERNAL "; if(TangenteOrientation == TopAbs_INTERNAL) str2=" INTERNAL ";
if(TangenteOrientation==TopAbs_REVERSED) str2=" REVERSED "; if(TangenteOrientation == TopAbs_REVERSED) str2=" REVERSED ";
if(TangenteOrientation==TopAbs_FORWARD) str2=" FORWARD "; 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", 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 #endif
#if 1
ComplexTransition.Compare (Precision::Angular(), ComplexTransition.Compare (Precision::Angular(),
Tangente, Normale, Courbure, Tangente, Normale, Courbure,
LocalTransition, TangenteOrientation) ; LocalTransition, TangenteOrientation) ;
#else
ComplexTransition.Compare (Precision::Angular(),
Tangente, Normale, Courbure,
LocalTransition, TopAbs_INTERNAL) ;
#endif
} }
switch (ComplexTransition.StateBefore()) { switch (ComplexTransition.StateBefore()) {

View File

@ -290,9 +290,9 @@ void IGESData_GlobalSection::CopyRefs ()
Handle(Interface_ParamSet) IGESData_GlobalSection::Params () const 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; 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 Handle(Interface_ParamSet) res = new Interface_ParamSet(26); //gka 19.01.99
if (theSeparator == ',') res->Append (vide,0,Interface_ParamVoid,0); if (theSeparator == ',') res->Append (vide,0,Interface_ParamVoid,0);
else { uncar[0] = theSeparator; res->Append (uncar,1,Interface_ParamMisc,0); } else { uncar[0] = theSeparator; res->Append (uncar,1,Interface_ParamMisc,0); }

View File

@ -102,47 +102,51 @@ Standard_Integer Interface_FloatWriter::Convert (const Standard_Real val,
const Standard_CString rangeform) const Standard_CString rangeform)
{ {
// Valeur flottante, expurgee de "0000" qui trainent et de "E+00" // Valeur flottante, expurgee de "0000" qui trainent et de "E+00"
// char lval[20]; const Standard_Integer anMasSize = 5; // change 6 to 5: index 5 is not used below
char lxp[6], *pText; char lxp[anMasSize], *pText;
int i0,j0=0; int i0, j0 = 0;
for (Standard_Integer i = 0; i < anMasSize; ++i)
lxp[i] = '\0';
lxp[0] = lxp[4] = '\0';
pText=(char *)text; pText=(char *)text;
// //
if ( (val >= R1 && val < R2) || if ( (val >= R1 && val < R2) || (val <= -R1 && val > -R2) )
(val <= -R1 && val > -R2) ) {
Sprintf(pText,rangeform,val); Sprintf(pText,rangeform,val);
} else
else {
Sprintf(pText,mainform,val); Sprintf(pText,mainform,val);
}
if (zsup) { if (zsup)
for (int i = 0; i < 16; i ++) { {
for (int i = 0; i < 16; i ++)
{
i0 = i; i0 = i;
if (text[i] == 'e' || text[i] == 'E') { if (text[i] == 'e' || text[i] == 'E')
lxp[0] = 'E'; {
lxp[1] = text[i+1]; lxp[0] = 'E';
lxp[2] = text[i+2]; lxp[1] = text[i+1];
lxp[3] = text[i+3]; lxp[2] = text[i+2];
lxp[4] = text[i+4]; lxp[3] = text[i+3];
if (lxp[1] == '+' && lxp[2] == '0' && lxp[3] == '0' && lxp[4] == '\0') { lxp[4] = text[i+4];
lxp[0] = '\0';
} if (lxp[1] == '+' && lxp[2] == '0' && lxp[3] == '0' && lxp[4] == '\0')
pText[i] = '\0'; lxp[0] = '\0';
}
if (text[i] == '\0') { pText[i] = '\0';
break;
} }
if (text[i] == '\0') break;
} }
//#52 rln 23.12.98 converting 1e-07 throws exception //#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; j0 = j;
if (text[j] != '0') {
break; if (text[j] != '0')
} break;
pText[j] = '\0'; pText[j] = '\0';
} }
pText[j0+1] = lxp[0]; pText[j0+1] = lxp[0];
pText[j0+2] = lxp[1]; pText[j0+2] = lxp[1];
pText[j0+3] = lxp[2]; pText[j0+3] = lxp[2];

View File

@ -384,25 +384,18 @@ Standard_Integer OSD_Process :: ProcessId () {
OSD_Path OSD_Process :: CurrentDirectory () { OSD_Path OSD_Process :: CurrentDirectory () {
Standard_PCharacter pBuff; OSD_Path anCurrentDirectory;
DWORD dwSize = 0;
OSD_Path retVal;
dwSize = GetCurrentDirectory ( dwSize, pBuff ); DWORD dwSize = PATHLEN + 1;
pBuff = new Standard_Character[ dwSize ]; Standard_PCharacter pBuff = new char[dwSize];
if ( ( dwSize = GetCurrentDirectory ( dwSize, pBuff ) ) == NULL ) if ( GetCurrentDirectory(dwSize, pBuff) > 0 )
anCurrentDirectory = OSD_Path ( pBuff );
_osd_wnt_set_error ( myError, OSD_WProcess ); else
_osd_wnt_set_error ( myError, OSD_WProcess );
else
retVal = OSD_Path ( pBuff );
delete[] pBuff;
return retVal;
delete[] pBuff;
return anCurrentDirectory;
} // end OSD_Process :: CurrentDirectory } // end OSD_Process :: CurrentDirectory
void OSD_Process :: SetCurrentDirectory ( const OSD_Path& where ) { void OSD_Process :: SetCurrentDirectory ( const OSD_Path& where ) {

View File

@ -84,7 +84,7 @@ void RWStepBasic_RWSiUnit::ReadStep(const Handle(StepData_StepReaderData)& data,
data->CheckDerived(num,1,"dimensions",ach,Standard_False); data->CheckDerived(num,1,"dimensions",ach,Standard_False);
// --- own field : prefix --- // --- own field : prefix ---
StepBasic_SiPrefix aPrefix; StepBasic_SiPrefix aPrefix = StepBasic_spExa;
Standard_Boolean hasAprefix = Standard_False; Standard_Boolean hasAprefix = Standard_False;
if (data->IsParamDefined(num,2)) { if (data->IsParamDefined(num,2)) {
if (data->ParamType(num,2) == Interface_ParamEnum) { if (data->ParamType(num,2) == Interface_ParamEnum) {

View File

@ -60,7 +60,7 @@ void RWStepBasic_RWSiUnitAndLengthUnit::ReadStep(const Handle(StepData_StepReade
// --- field : prefix --- // --- field : prefix ---
RWStepBasic_RWSiUnit reader; RWStepBasic_RWSiUnit reader;
StepBasic_SiPrefix aPrefix; StepBasic_SiPrefix aPrefix = StepBasic_spExa;
Standard_Boolean hasAprefix = Standard_False; Standard_Boolean hasAprefix = Standard_False;
if (data->IsParamDefined(num,1)) { if (data->IsParamDefined(num,1)) {
if (data->ParamType(num,1) == Interface_ParamEnum) { if (data->ParamType(num,1) == Interface_ParamEnum) {

View File

@ -69,7 +69,7 @@ void RWStepBasic_RWSiUnitAndMassUnit::ReadStep(const Handle(StepData_StepReaderD
// --- field : prefix --- // --- field : prefix ---
RWStepBasic_RWSiUnit reader; RWStepBasic_RWSiUnit reader;
StepBasic_SiPrefix aPrefix; StepBasic_SiPrefix aPrefix = StepBasic_spExa;
Standard_Boolean hasAprefix = Standard_False; Standard_Boolean hasAprefix = Standard_False;
if (data->IsParamDefined(num,1)) { if (data->IsParamDefined(num,1)) {
if (data->ParamType(num,1) == Interface_ParamEnum) { if (data->ParamType(num,1) == Interface_ParamEnum) {

View File

@ -53,7 +53,7 @@ void RWStepBasic_RWSiUnitAndPlaneAngleUnit::ReadStep(const Handle(StepData_StepR
// --- field : prefix --- // --- field : prefix ---
RWStepBasic_RWSiUnit reader; RWStepBasic_RWSiUnit reader;
StepBasic_SiPrefix aPrefix; StepBasic_SiPrefix aPrefix = StepBasic_spExa; // by default
Standard_Boolean hasAprefix = Standard_False; Standard_Boolean hasAprefix = Standard_False;
if (data->IsParamDefined(num,1)) { if (data->IsParamDefined(num,1)) {
if (data->ParamType(num,1) == Interface_ParamEnum) { if (data->ParamType(num,1) == Interface_ParamEnum) {

View File

@ -49,7 +49,7 @@ void RWStepBasic_RWSiUnitAndSolidAngleUnit::ReadStep (const Handle(StepData_Step
// --- field : prefix --- // --- field : prefix ---
RWStepBasic_RWSiUnit reader; RWStepBasic_RWSiUnit reader;
StepBasic_SiPrefix aPrefix; StepBasic_SiPrefix aPrefix = StepBasic_spExa;
Standard_Boolean hasAprefix = Standard_False; Standard_Boolean hasAprefix = Standard_False;
if (data->IsParamDefined(num,1)) { if (data->IsParamDefined(num,1)) {
if (data->ParamType(num,1) == Interface_ParamEnum) { if (data->ParamType(num,1) == Interface_ParamEnum) {

View File

@ -61,7 +61,7 @@ void RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit::ReadStep
// --- field : prefix --- // --- field : prefix ---
RWStepBasic_RWSiUnit reader; RWStepBasic_RWSiUnit reader;
StepBasic_SiPrefix aPrefix; StepBasic_SiPrefix aPrefix = StepBasic_spExa;
Standard_Boolean hasAprefix = Standard_False; Standard_Boolean hasAprefix = Standard_False;
if (data->IsParamDefined(num,1)) { if (data->IsParamDefined(num,1)) {
if (data->ParamType(num,1) == Interface_ParamEnum) { if (data->ParamType(num,1) == Interface_ParamEnum) {

View File

@ -60,7 +60,7 @@ void RWStepBasic_RWSiUnitAndTimeUnit::ReadStep (const Handle(StepData_StepReader
// --- field : prefix --- // --- field : prefix ---
RWStepBasic_RWSiUnit reader; RWStepBasic_RWSiUnit reader;
StepBasic_SiPrefix aPrefix; StepBasic_SiPrefix aPrefix = StepBasic_spExa;
Standard_Boolean hasAprefix = Standard_False; Standard_Boolean hasAprefix = Standard_False;
if (data->IsParamDefined(num,1)) { if (data->IsParamDefined(num,1)) {
if (data->ParamType(num,1) == Interface_ParamEnum) { if (data->ParamType(num,1) == Interface_ParamEnum) {

View File

@ -4,6 +4,7 @@ puts "TODO CR23096 ALL: NBSHAPES : Faulty"
puts "TODO CR23096 ALL: LABELS : Faulty" puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO ?CR23096 ALL: CHECKSHAPE : Faulty" puts "TODO ?CR23096 ALL: CHECKSHAPE : Faulty"
puts "TODO ?CR23096 ALL: Error : 5 differences with reference data found" 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 set filename BUC60291.igs

View File

@ -1,4 +1,5 @@
# !!!! This file is generated automatically, do not edit manually! See end script # !!!! 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 filename r1001_ac.stp
set ref_data { set ref_data {

View File

@ -1,4 +1,6 @@
# !!!! This file is generated automatically, do not edit manually! See end script # !!!! 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 filename tr10_r1001_ac.stp
set ref_data { set ref_data {