On 24/07/2015 at 12:04, xxxxxxxx wrote:
In some circumstances, I get a Modeling Kernel Error : Triangulation error in the Console, when performing a SendModelingCommand with c4d.ID_MODELING_EXTRUDE_INNER_TOOL
I would like to be able to catch this error, when it occurs.
How can I catch it? What is the name of the error?
On 25/07/2015 at 13:27, xxxxxxxx wrote:
I tried this to catch any exception:
And then checking if fine was False, to decide if I should go on or not.
But it seems that it is not an exception and if that error occurs, it can't be caught
Am I correct at assuming that?
On 25/07/2015 at 15:11, xxxxxxxx wrote:
This only happens when the affected shapes have ngons. But it doesn't happen all the time. Just on some occasions.
Is there any test that can be performed on a mesh to verify if it will produce this error when performing a SendModelingCommand with c4d.ID_MODELING_EXTRUDE_INNER_TOOL ?
On 27/07/2015 at 02:52, xxxxxxxx wrote:
the "Modeling Kernel Error" is an error in the internal (C++) modeling library. It has nothing to do with Python, so such an error does not throw an exception. I'm afraid the only thing you can do is to check if SendModelingCommand() returns False.
On 27/07/2015 at 07:39, xxxxxxxx wrote:
I already check if the result is False.
So, this means that, on some occasions, that message can pop-up in the Console and there is nothing I can do about it?
On 29/07/2015 at 04:23, xxxxxxxx wrote:
yes, it seems that there is nothing you can do about it.