Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Modeling Kernel Error : Triangulation

    Scheduled Pinned Locked Moved PYTHON Development
    6 Posts 0 Posters 577 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 25/07/2015 at 13:27, xxxxxxxx wrote:

        I tried this to catch any exception:
        **
        fine=True

        try:
             result=utils.SendModelingCommand(command=c4d.ID_MODELING_EXTRUDE_INNER_TOOL,list=[my_op],mode=c4d.MODELINGCOMMANDMODE_POLYGONSELECTION,bc=bc,doc=doc)

        except:
             fine=False
        **
        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?

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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 ?

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 27/07/2015 at 02:52, xxxxxxxx wrote:

            Hello,

            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.

            Best wishes,
            Sebastian

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              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?

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                On 29/07/2015 at 04:23, xxxxxxxx wrote:

                Hello,

                yes, it seems that there is nothing you can do about it.

                Best wishes,
                Sebastian

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post