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

    Vertex UVW?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 388 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 19/05/2006 at 15:22, xxxxxxxx wrote:

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

      ---------
      Hi,

      I would like to retrieve the uv coordinate for a vertex but without going thru all polygons or using the neighbor class. Isn´t it stored anywhere?

      Thanks
      Katachi

      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 19/05/2006 at 17:53, xxxxxxxx wrote:

        Be careful there. "The" UV coordinate for "a" vertex is misleading. There can be many UV coordinates for a single vertex - which is why you MUST (or at least are strongly encouraged to) go through the polygons!!! 😜

        Theoretically, there can be as many UV coordinates for a vertex as polygons to which it belongs - the case in point is if you were to have every UV polygon disconnected from every other (which can be done in BodyPaint).

        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 20/05/2006 at 10:29, xxxxxxxx wrote:

          As Robert mentioned, you can't really get the uv coordinate for "a" vertex, because that coordinate could potentially be different for every polygon that shared that vertex... which means you pretty much need to know which polygon you're looking for.  If that's polygon number 321, you:
          UVWTag *uvTag = (UVWTag* )(op->GetTag(Tuvw, 0));
          UVWStruct uvw = uvTag->Get(321);
          ...and then figure out whether you need the a,b,c or d coordinate of the UVWStruct.
          Now, if you want to find the uv value of a "point(s) selected inside BodyPaint", that's a different answer... see this thread:
          https://developers.maxon.net/forum/topic/2907

          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 20/05/2006 at 13:23, xxxxxxxx wrote:

            Hi,

            thanks first of all for your answers. And thanks for Giblet for the precedent thread, as that was what I meant! 🙂 You are of course right that "a" vertex can have arbitrary numbers of uv points.

            Thank you!
            Samir

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