Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

Determine UV island connectivity?

Author
Message
  Topic Search Topic Search
FilipM View Drop Down
Member
Member


Joined: 2006 Jan 29
Online Status: Offline
Posts: 88
Direct Link To This Post Topic: Determine UV island connectivity?
    Posted: 2018 Aug 23 at 1:42am

User Information:

Cinema 4D Version:   17 
Platform:   Windows  ;   
Language(s):     C++  ;   

---------

Hi!
For one of my plugins, I need to know the connectivity of the UVs of a polygon object.

I know how to get UV coordinates from the UVW tag. As far as I can tell, however, this is just given in a "polygon soup" format, with no connectivity information. (Which makes sense, since the UV topology/connectivity may differ from the mesh topology, i.e., there may be UV seams.)

When two polygons share a vertex, I would like to determine if they also share the same UV vertex. My idea for determining this is to look at the UV coordinates of the two "polyvertices" and determine if their UV coordinates are the same (within some tolerance). Before I implement this, I just wanted to check if there are any built in functions for this, perhaps something similar to the neighbor class, but for UVs?

/Filip

Back to Top
MaximeA View Drop Down
Forum Moderator
Forum Moderator

Forum Moderator

Joined: 2018 Jan 04
Location: France - Nantes
Online Status: Offline
Posts: 119
Direct Link To This Post Posted: 2018 Aug 24 at 2:23am
Hi Filip.

I confirm there is actually no way in the SDK to know such UVW connectivity.
With that said, your approach to check UVW vertex position is correct.
I previously asked kind of similar topic Here where I end up to use Neighbor you can find my code (in python) here.

Hope it's helpful, if you have any question please let me know!
Cheers,
Maxime!


Edited by MaximeA - 2018 Aug 24 at 7:28am
MAXON
SDK Specialist
Back to Top
FilipM View Drop Down
Member
Member


Joined: 2006 Jan 29
Online Status: Offline
Posts: 88
Direct Link To This Post Posted: 2018 Aug 24 at 2:53am
OK, good to know. Thanks Maxime!

/Filip
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.109 seconds.