io7m | single-page | multi-page | SMF Format Specification 0.16.0-SNAPSHOT
3.5. Section - metadata
Previous
3. SMF/B - Binary Encoding
Up
3.7. Section - vertices-noninterleaved
Next

# 3.6. Section - triangles

- 3.6.1. Definition
- 3.6.2. Cardinality/Ordering
- 3.6.3. Magic Number
- 3.6.4. Data

## 3.6.1. Definition

1
The triangles section specifies triangle data.

## 3.6.2. Cardinality/Ordering

1
A triangles section can appear [0, 1] times in an SMF/B file.
2
The triangles section has no requirements on ordering.

## 3.6.3. Magic Number

1
The triangles section is identified by the magic number 0x534D465F54524953.

## 3.6.4. Data

1
Triangles are specified as an array of 3-element unsigned integer vectors, with each integer component being of the size declared in the preceding smf section. No padding is inserted between triangles, but padding may need to be added at the end of the array in order to ensure proper section alignment. All values are stored in either big-endian or little-endian form depending on the order specified in the SMF section.
3.5. Section - metadata
Previous
3. SMF/B - Binary Encoding
Up
3.7. Section - vertices-noninterleaved
Next
io7m | single-page | multi-page | SMF Format Specification 0.16.0-SNAPSHOT