Vertex UVW?
-
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 -
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).
-
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 -
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