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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Hierarchy Modifier and Mesh Bounding Box?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 348 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 01/05/2006 at 17:10, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.102 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      There is one very annoying property to my plugin that should be resolved prior to beta-testing. It involves my plugin hierarchy modifier objects (bones) which use ModifyObject() and the bounding box for the PolygonObject that they deform. In the case of my modifiers, transformations of the root bone are done to the bone which seems to cause this dislocation of the PolygonObject and its bounding box. This wouldn't really matter much except that Editor display clipping seems to be using the bounding box. When the bounding box goes out of the display, the PolygonObject, although fully in the display, disappears.

      I guess one solution may be to always translate/scale/rotate the PolygonObject for the root bone. Is there something missing or a technique that should be employed to keep the bounding box up to date and properly aligned with the deformed PolygonObject (noting that, yes, I am calling polyobject->Message(MSG_UPDATE))?

      Thanks,

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 01/05/2006 at 18:03, xxxxxxxx wrote:

        Hmmm, I'm implementing GetDimension() as I write this, but am thinking that the updated bounding must be calculated during the ModifyObject() call (on the 'op' deformed-copy of the PolygonObject). Is that correct?

        Thanks,

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 01/05/2006 at 21:12, xxxxxxxx wrote:

          Okay, so just implementing GetDimension() and bounding my modifier objects is enough to stop the vanishing PolygonObject. 🙂

          Thanks,

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 02/05/2006 at 00:37, xxxxxxxx wrote:

            ah, have just seen this thread. First of all, great you managed it yourself 😄 second, great to hear this as I had the exact same problem but never got around it checking what the problem was. So thanks for clearing this up!

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