Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

ConvertAdjacencyToPointReps

Started by JohnBolton Mar 19, 2003 at 12:17 PM 2 replies 4.4k views
Original Post
JohnBolton
JohnBolton
Does anyone know what "point representative data" is? I''ve searched everywhere! What do the functions ConvertAdjacencyToPointReps and ConvertPointRepsToAdjacency do?
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
JohnBolton
JohnBolton
Does nobody know? Somebody has to know.
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
BlackIce
BlackIce
i find it at http://www.xmission.com/~legalize/book/archive/usenet.cgi?14110

=============
> What is the point representative data? Is it vertex index?

Yes.
================
xyzzy00
xyzzy00
Yes, it is an array of vertex indices.

If you think of two adjacent triangles which share an edge. Lets say triangle ABC and DEF share an edge BC/DE like:

---CD---
--/||\--
-A-||-F-
--\||/--
---BE--- (the ''-''s are just for spacing)

Vertices: ABCDEF
Adjacency: -1-0--

Vertices B and E are co-located (since we know the edge are shared), but may have different vertex indices, since they might have different normals, texture coordinates, colors, etc.. Vertices C and D are co-located too.

When you convert to point-reps, a single vertex index will be used to represent these co-located vertex. For example, if you created point reps for the triangles above, it would probably look like:

Vertices: ABCDEF
Point-reps: 012215

Note that B and E are both given the value 1. The fact that they share a value indicates that they are co-located. Since 1 is the index of B, B is called the point-representative of B and E.

The same is true of C and D. In this example, C is the point-representative of C and D. It is not really important that C was picked instead of D to be the representative. Either would work just as well.

Hope this all makes some sense.

xyzzy

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.