How to test correct ending of OCCT algorithms?
Generally OCCT algorithms implement IsDone method.
This method returns true if computation have been performed successfully from beginning to end.
This method returns false if computation has failed.
When IsDone returns true, this means that the computation is successful regarding to input data. It does not necessary mean that you get a result. For example, if you perform a cut algorithm between two shapes without any common part, the IsDone method will return true, but the result will be empty.
So, in some cases, it can be necessary to analyze the structure of a result before using it again in following computations. These tests are not done systematically into algorithms to get faster computations. The application performs necessary tests depending on the context.