3.6. Section - triangles | 3. SMF/B - Binary Encoding | 3.8. Section - metadata |
Previous | Up | Next |
Section - vertices-noninterleaved
Definition
The
vertices-noninterleaved section specifies vertex data for all declared
attributes.
Cardinality/Ordering
A vertices-noninterleaved section can appear [0, 1] times in an SMF/B file.
The vertices-noninterleaved section has no requirements on ordering.
Magic Number
The vertices-noninterleaved section is identified by the magic number 0x534D465F56444E49.
Data
The data for each attribute is given in full in the order in which the attributes were declared in the header. Specifically, in a file containing
v vertices and a list of attributes
a of length
n, the data of the section will contain
v values of the type specified in
a !! 0, followed by
v values of the type specified by
a !! 1, and so on up to
a !! (n - 1). All values are stored in either big-endian or little-endian form depending on the order specified in the
SMF section.
The start of the data for each attribute is aligned to the next 16 octet boundary regardless of type. The alignment is achieved by inserting padding octets at the end of the data for each attribute so that the start of the data for the next attribute, or the start of the next section, occurs on a 16 octet boundary.
Previous | Up | Next |
3.6. Section - triangles | 3. SMF/B - Binary Encoding | 3.8. Section - metadata |