ShapeUpgrade_UnifySameDomain class, an exception "StdFail_NotDone : BRep_API: command not done" will be thrown.

I am using the ShapeUpgrade_UnifySameDomain class to modify the model.

When processing using the following "shape.brep", the exception "StdFail_NotDone : BRep_API: command not done" is raised in the build function.

Is there any way to avoid this phenomenon?



try {
  ShapeUpgrade_UnifySameDomain unif( shape, Standard_True, Standard_True, Standard_True );
  unif.Build(); // <- exception
  // <- catch the exception


Opencascade: V7.6.3
OS: Windows 10 Pro 64bit
CPU: Intel(R) Core(TM) i7-8550U
Memory: 16GB

Best regards.