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

    BaseDraw::DrawPolygonObject()

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 504 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 27/01/2007 at 14:50, xxxxxxxx wrote:

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

      ---------
      Hi,

      DrawPolygonObject doesn't draw the object, if the center of the world is outside the view, although all polys are in the visible area. The object is not inserted into the document.

      My idea to fix that, is to position the object's origin in the middle of the polygons. But I hope to get another solution here, because that wouldn't work in all situations.

      Any ideas?

      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 27/01/2007 at 16:35, xxxxxxxx wrote:

        Yes, this seems to be the standard behavior for DrawPolygonObject() - if the origin is outside the view frustrum, the entire object is clipped. My Tool does this as well and have never found a way around it.

        Hopefully someone with a way to solve this will respond.

        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 30/01/2007 at 03:23, xxxxxxxx wrote:

          I can confirm this as well. I will ask the developers for a workaround.

          cheers,
          Matthias

          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 30/01/2007 at 16:26, xxxxxxxx wrote:

            Ok, to make it work Cinema needs the bounding box of the polygon object. You do this by submitting the MSG_UPDATE message after you have changed or created the polygon object.

            Call

            mypoly->Message(MSG_UPDATE);

            after the polygon creation/change.

            cheers,
            Matthias

            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 30/01/2007 at 16:49, xxxxxxxx wrote:

              Thanks, Matthias!

              Will try this immediately and let you know the results.

              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 30/01/2007 at 17:09, xxxxxxxx wrote:

                That works! Just calling obj->Message(MSG_UPDATE) after each obj->SetMg() and after creation. No more full clipping when the center goes out of view.

                Thanks much!

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