mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0031786: Data Exchange - After the importing STEP file the free shape is empty
- Fixed the exception - Added the test
This commit is contained in:
parent
8c36926a54
commit
ed75148574
@ -4421,8 +4421,10 @@ Standard_Boolean STEPCAFControl_Reader::ReadViews(const Handle(XSControl_WorkSes
|
|||||||
for (; anIter.More(); anIter.Next()) {
|
for (; anIter.More(); anIter.Next()) {
|
||||||
if (anIter.Value()->IsKind(STANDARD_TYPE(StepRepr_MappedItem))) {
|
if (anIter.Value()->IsKind(STANDARD_TYPE(StepRepr_MappedItem))) {
|
||||||
Handle(StepRepr_MappedItem) anItem = Handle(StepRepr_MappedItem)::DownCast(anIter.Value());
|
Handle(StepRepr_MappedItem) anItem = Handle(StepRepr_MappedItem)::DownCast(anIter.Value());
|
||||||
Handle(StepRepr_Representation) aRepr = anItem->MappingSource()->MappedRepresentation();
|
if (Handle(StepRepr_Representation) aRepr = anItem->MappingSource()->MappedRepresentation())
|
||||||
collectViewShapes(theWS, theDoc, aRepr, aShapes);
|
{
|
||||||
|
collectViewShapes(theWS, theDoc, aRepr, aShapes);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (anIter.Value()->IsKind(STANDARD_TYPE(StepVisual_AnnotationOccurrence)) ||
|
else if (anIter.Value()->IsKind(STANDARD_TYPE(StepVisual_AnnotationOccurrence)) ||
|
||||||
anIter.Value()->IsKind(STANDARD_TYPE(StepVisual_DraughtingCallout))) {
|
anIter.Value()->IsKind(STANDARD_TYPE(StepVisual_DraughtingCallout))) {
|
||||||
|
15
tests/bugs/step/bug31786
Normal file
15
tests/bugs/step/bug31786
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
puts "======="
|
||||||
|
puts "0031786: Data Exchange - After the importing STEP file the free shape is empty"
|
||||||
|
puts "======="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
pload ALL
|
||||||
|
|
||||||
|
ReadStep D [locate_data_file bug31786_InternalUseOnly_714-236074-105_NXMBD_A_PNL_SIDE_ENCL_AC_DC_242.stp]
|
||||||
|
XGetOneShape result D
|
||||||
|
|
||||||
|
vinit
|
||||||
|
vdisplay result
|
||||||
|
vfit
|
||||||
|
|
||||||
|
vdump $imagedir/${casename}.png
|
Loading…
x
Reference in New Issue
Block a user