# Does drawindexedprimitive support D3DPT_TRIANGLESTRIP and D3DPT_TRIANGLEFAN?

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

## Recommended Posts

I think strip and fan give the definition of triangle in a vertex buffer.so index do not need. right?

##### Share on other sites
The only type you can't used as indexed is a point list. You can still get benifits from using an indexed strip or fan, since you can share vertices.

##### Share on other sites
I think if you use strip or fan, you already define triangle with shared vertices.that is , fan and strip is similar to index. it define triangle according to vertex list. Could you give me a example that demonstrate triangles be defined by fan/strip and index together? thanks

##### Share on other sites
A regular grid. You have 1 long strip for each row, and you link 2 rows by adding degenerated tris. So, for this setup :
0   1   2   34   5   6   78   9   10  11

you have the indices

0, 4, 1, 5, 2, 6, 3, 7, 7, 11, 10, 6, 9, 5, 8, 4

You can't do that without using indices, since you'd have to add vertices.

oh, and DirectX specific questions should go in the DirectX forum.

1. 1
Rutin
42
2. 2
3. 3
4. 4
5. 5

• 18
• 20
• 14
• 14
• 9
• ### Forum Statistics

• Total Topics
633371
• Total Posts
3011545
• ### Who's Online (See full list)

There are no registered users currently online

×