1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

Compare commits

...

1 Commits

Author SHA1 Message Date
gka
99bf2b94cb 0028192: Translation assembly from STEP file is incorrect if file contains error in the entity "REPRESENTATION_RELATIONSHIP".
For case when order of representations in the entity "REPRESENTATION_RELATIONSHIP" is invalid all transformations from representations are checked.
2016-12-06 10:59:52 +03:00

View File

@@ -1637,11 +1637,11 @@ Standard_Boolean STEPControl_ActorRead::ComputeTransformation (const Handle(Step
Handle(StepGeom_Axis2Placement3d) org = Origin;
Handle(StepGeom_Axis2Placement3d) trg = Target;
Standard_Integer code1=0, code2=0, i;
for ( i=1; code1 != 1 && i <= OrigContext->NbItems(); i++ ) {
for ( i=1; code1 != -1 && i <= OrigContext->NbItems(); i++ ) {
if ( OrigContext->ItemsValue(i) == org ) code1 = 1;
else if ( OrigContext->ItemsValue(i) == trg ) code1 = -1;
}
for ( i=1; code2 != 1 && i <= TargContext->NbItems(); i++ ) {
for ( i=1; code2 != -1 && i <= TargContext->NbItems(); i++ ) {
if ( TargContext->ItemsValue(i) == org ) code2 = -1;
else if ( TargContext->ItemsValue(i) == trg ) code2 = 1;
}