mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031491: Data Exchange, STEP Import - Regression due to patch 29068
Add parameter read.step.root.transformation to switch on/off using transformation placed in the root shape representation.
This commit is contained in:
@@ -303,7 +303,8 @@ Handle(Transfer_Binder) STEPControl_ActorRead::Transfer
|
||||
}
|
||||
}
|
||||
// [END] Get version of preprocessor (to detect I-Deas case) (ssv; 23.11.2010)
|
||||
return TransferShape (start, TP, Standard_True, Standard_True, theProgress);
|
||||
Standard_Boolean aTrsfUse = (Interface_Static::IVal("read.step.root.transformation") == 0);
|
||||
return TransferShape(start, TP, Standard_True, aTrsfUse, theProgress);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -209,6 +209,14 @@ STEPControl_Controller::STEPControl_Controller ()
|
||||
Interface_Static::Init("step","read.step.constructivegeom.relationship",'&',"eval ON");
|
||||
Interface_Static::SetCVal("read.step.constructivegeom.relationship","OFF");
|
||||
|
||||
// Mode to variate apply or not transformation placed in the root shape representation.
|
||||
// Issues #29068 and #31491.
|
||||
Interface_Static::Init("step", "read.step.root.transformation", 'e', "");
|
||||
Interface_Static::Init("step", "read.step.root.transformation", '&', "enum 0");
|
||||
Interface_Static::Init("step", "read.step.root.transformation", '&', "eval ON");
|
||||
Interface_Static::Init("step", "read.step.root.transformation", '&', "eval OFF");
|
||||
Interface_Static::SetCVal("read.step.root.transformation", "ON");
|
||||
|
||||
init = Standard_True;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user