The conventional suffix for a
QUAD file is .quad.
The file syntax is
[C][N]QUAD -or- [C][N]POLY # Key word vertex vertex vertex vertex # 4*N vertices for some N vertex vertex vertex vertex ...
The leading key word is
where the optional
N prefixes indicate that each vertex
includes colors and normals respectively. That is, these files
begin with one of the words
are synonymous; both forms are allowed just for compatibility with
Following the key word is an arbitrary number of groups of four vertices, each group describing a quadrilateral. See the Vertex syntax above. The object ends at end-of-file, or with a closebrace if incorporated into an object reference (see above).
QUAD BINARY file format is accepted; See Binary format. The
first word of binary data must be a 32-bit integer giving the number of
quads in the object; following that is a series of 32-bit floats,
arranged just as in the ASCII format.