1
0
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:
atereshi
2022-05-16 16:17:12 +03:00
committed by smoskvin
parent 13f5da81ad
commit 51329afcef
14 changed files with 275 additions and 21 deletions

View File

@@ -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 );
}