#### Archived

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

# Converting fans and strips to indexed triangle lists?

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

## 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 on other sites
Well, a strip's vertices are numbered

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

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]

1. 1
2. 2
3. 3
4. 4
Rutin
16
5. 5

• 12
• 9
• 12
• 37
• 12
• ### Forum Statistics

• Total Topics
631418
• Total Posts
2999975
×