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:
parent
8f08e231fa
commit
1e1b83c07b
@ -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
13
tests/bugs/step/bug31472
Normal 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
|
Loading…
x
Reference in New Issue
Block a user