mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028024: Data Exchange - create a convenient mechanism for managing shape healing options when reading STEP or IGES file
Problem: There is no possibility to change shape healing options from DRAW without rewriting resource file. Change: Shape healing parameters from STEP and IGES resource files were duplicated to InterfaceStatic. Resource manager initialize from InterfaceStatic if resource file name is empty. Result: User can operationally change shape healing parameters from DRAW command using "param" command.
This commit is contained in:
@@ -62,7 +62,14 @@ Standard_Boolean ShapeProcess_Context::Init (const Standard_CString file,
|
||||
const Standard_CString scope)
|
||||
{
|
||||
myScope.Nullify();
|
||||
myRC = LoadResourceManager ( file );
|
||||
if (file != nullptr && strlen (file) != 0)
|
||||
{
|
||||
myRC = LoadResourceManager ( file );
|
||||
}
|
||||
else
|
||||
{
|
||||
myRC = new Resource_Manager();
|
||||
}
|
||||
if ( scope && scope[0] ) {
|
||||
SetScope ( scope );
|
||||
}
|
||||
|
Reference in New Issue
Block a user