mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024990: StepWrite fails on the attached shape
Add check to avoid exception Test cases for issue CR24990
This commit is contained in:
@@ -831,6 +831,10 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferShape (const Handle(Tran
|
|||||||
FP->AddFail(start,"The Shape is not a SOLID, nor a SHELL, nor a FACE");
|
FP->AddFail(start,"The Shape is not a SOLID, nor a SHELL, nor a FACE");
|
||||||
return binder;
|
return binder;
|
||||||
}
|
}
|
||||||
|
else if (theShape.ShapeType() == TopAbs_COMPSOLID) {
|
||||||
|
FP->AddWarning(start, "COMPSOLID is not exported yet");
|
||||||
|
return binder;
|
||||||
|
}
|
||||||
else RepItemSeq->Append (theShape);
|
else RepItemSeq->Append (theShape);
|
||||||
|
|
||||||
// COMPUTING 3D TOLERANCE
|
// COMPUTING 3D TOLERANCE
|
||||||
@@ -1424,6 +1428,8 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferSubShape (const Handle(
|
|||||||
FP->Bind (mapper,resbind);
|
FP->Bind (mapper,resbind);
|
||||||
resprod=resbind; //KA - OCC7141(skl 10.11.2004)
|
resprod=resbind; //KA - OCC7141(skl 10.11.2004)
|
||||||
}
|
}
|
||||||
|
if (resprod.IsNull())
|
||||||
|
return resprod;
|
||||||
|
|
||||||
// A new resbind may have been produced
|
// A new resbind may have been produced
|
||||||
// DeclareAndCast(Transfer_SimpleBinderOfTransient,restrans,resbind);
|
// DeclareAndCast(Transfer_SimpleBinderOfTransient,restrans,resbind);
|
||||||
|
11
tests/bugs/step/bug24990
Executable file
11
tests/bugs/step/bug24990
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC24990"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
#######################################################################
|
||||||
|
# StepWrite fails on the attached shape
|
||||||
|
#######################################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug24990_StepWrite_Exception.brep] a
|
||||||
|
|
||||||
|
stepwrite m a
|
Reference in New Issue
Block a user