1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0031472: Exception raised during translation of the STEP entity Constructive Geometry Representation containing one representation

Modification number of the representation items are considered for STEP entity "Constructive Geometry Representation"
This commit is contained in:
gka 2020-03-30 16:11:31 +03:00 committed by bugmaster
parent 8f08e231fa
commit 1e1b83c07b
2 changed files with 14 additions and 1 deletions

View File

@ -1153,7 +1153,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(
Standard_Integer j =1;
Handle(StepGeom_Axis2Placement3d) anAxis1;
Handle(StepGeom_Axis2Placement3d) anAxis2;
for( ; j <= 2; j++ )
for( ; j <= aCRepr->NbItems(); j++ )
{
Handle(StepRepr_RepresentationItem) anItem = aCRepr->ItemsValue(j);
Handle(StepGeom_Axis2Placement3d) aStepAxis =

13
tests/bugs/step/bug31472 Normal file
View File

@ -0,0 +1,13 @@
puts "===================================="
puts "0031472: Translation of the STEP entity Constructive Geometry Representation containing one representation"
puts "===================================="
puts "Read STEP file containing GEOMETRIC_REPRESENTATION_CONTEXT and check"
puts "that it has been translated"
dall
param read.step.constructivegeom.relationship 1
stepread [locate_data_file 98508_2.stp] a *
checknbshapes a_1 -face 68 -wire 72 -compound 3
checkshape a_1 f