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

    Triangulate Object with Polygon Selection

    Scheduled Pinned Locked Moved SDK Help
    8 Posts 0 Posters 656 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 11/06/2009 at 01:38, xxxxxxxx wrote:

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

      ---------
      Hi,

      in my plugin, I create a clone of a geometry and triangulate it (internally in my plugin, the user doesn't see it).

      The user can link Selection tags with polygon selections in my plugin, which he has created on the original geometry.

      Of course, when I try to use the user's polygon selections on my internally triangulated geometry, it does not work correctly, since the polygon selection was made for the untriangulated geometry.

      How can I triangulate the polygon selection, too, so it fits my triangulated geometry?

      Thanks for any help & tips. If more information is needed for answering this, I can provide it.

      Greetings,
      Jack

      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 11/06/2009 at 01:55, xxxxxxxx wrote:

        hi,
        in cinema if you freeze a selection and than triangulate the object the selection is still there (but only if it has been saved in a selection tag). so maybe you need to clone the selection tag, too?

        cheers,
        ello

        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 11/06/2009 at 02:10, xxxxxxxx wrote:

          The problem is, that I don't just use any selection tag that's attached to the geometry. The user links them into my plugin using a LINK field.

          This is necessary since the user may have created several selection tags and wants to tell my plugin which of these selections to use.

          Cheers,
          Jack

          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 11/06/2009 at 04:44, xxxxxxxx wrote:

            cant you just select the linked selection and than create a selection tag with that selection on your clone. and after that triangulate it?

            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 11/06/2009 at 07:18, xxxxxxxx wrote:

              Hm, that would be an idea.
              I will try that, thanks!

              Cheers,
              Jack

              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 16/06/2009 at 12:40, xxxxxxxx wrote:

                Unfortunately, that does not work correctly...

                Using GetClone() I create a clone of the tag and attach it the the cloned geometry (using BaseObject::InsertTag()). After that, I perform an MCOMMAND_TRIANGULATE on the geometry clone to get the triangulated geometry.

                But after that, the selection data in the tag is broken. One polygon is always missing: The last polygon in the geometry's Polygon Array. It should be selected, but it is not. All other polygons work fine.

                Any more ideas?

                Cheers,
                Jack

                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 16/06/2009 at 12:47, xxxxxxxx wrote:

                  Oh wait, stop. It works. Just noticed a problem in the function that selects the polygons of the geometry.

                  Thanks a lot! 🙂

                  Greetings,
                  Jack

                  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 16/06/2009 at 14:09, xxxxxxxx wrote:

                    cool 🙂 nice to hear that

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