Archived

This topic is now archived and is closed to further replies.

Converting fans and strips to indexed triangle lists?

This topic is 5747 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Could anyone shed some light over this please? I think I''ve got a basic idea (not so hard I suppose) just looking for your thoughts. Regards Shadows

Share this post


Link to post
Share on other sites
Well, a strip's vertices are numbered


1--3--5
| /| /|
|/ |/ |
2--4--6


So your list would be:


1 2 3 4 3 2 3 4 5 6 5 4 ...


Note that every other triangle has reversed order, to keep them all going in the same counter-clockwise direction (Do this in reverse, obviously, for a clockwise direction)

And a fan, if I recall correctly, is:


2--3
| /|
|/ |
1--4
|\ |
| \|
6--5


Where the first point is the "center" of the fan (the origin of each triangle) and then the next vertices go consecutively around the polygon. So your list would be:


1 2 3 1 3 4 1 4 5 1 5 6 ...


Does this help?

EDIT: Fixed triangle-strip info

[edited by - Drilian on March 20, 2002 3:47:30 AM]

Share this post


Link to post
Share on other sites