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

    Vertexmap per Index or per Point ?

    SDK Help
    0
    4
    452
    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
      Helper
      last edited by

      On 06/07/2016 at 14:21, xxxxxxxx wrote:

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

      ---------
      I am currently working on a plugin which imports externally generated PolygonMesh geometry & vertex data into Cinema 4D.
      The external vertex data is set with different values on each Polygon index in a PolygonMesh (where several polygon vertex indices reference the same spatial point).
      It looks like that the Tvertexmap Tag data array can only set VertexMap data (e.g. weights) per polygon point and not per polygon index - is this correct ?  Thanks.

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

        On 07/07/2016 at 05:09, xxxxxxxx wrote:

        yes, correct. Hence the name "Vertex"Map.

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

          On 07/07/2016 at 07:48, xxxxxxxx wrote:

          Hi,

          welcome to the Plugin Café forums 🙂

          Your assumption is correct. For example look at the Alloc() function of the VertexMap tag, it just works with the number of vertices. The tag just carries info per vertex.
          Sorry, I know, this answer won't make you happy.

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

            On 11/07/2016 at 07:58, xxxxxxxx wrote:

            Thanks. 🙂 I have used a work-around now by duplicating points where needed.
            This subject can be closed.

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