How can I make a TransformedColored rectangle in D3d?

I learned how to make a triangle with a custom vertex of TransformedColored. Is it possible to make a rectangle (or any other shape) in a similar way?
[151 byte] By [dxfoo] at [2008-2-26]
# 1
dxfoo wrote:
I learned how to make a triangle with a custom vertex of TransformedColored. Is it possible to make a rectangle (or any other shape) in a similar way?

Read some basic 3D graphics book to see how to use triangles to construct any desired object.

Ludovic_han at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...
# 2
I am not sure how you made that traingle, if it was a triangle list, or what ever. But yeah, the method is similar. Basicaly you make 2 triangles and but them next to each other, so it looks like a rectangle.
YOu can also optimise this by letting the two triangles share vertices.

- ?? -

NoteMe at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...