A container for vertex buffer data to be used in rendering a 3D object.
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
- Model I/O
A mesh contains one or more
MDLSubmesh objects. Each submesh contains index buffer data that describes how the mesh’s vertices should be combined for drawing and references material information describing an intended surface appearance for the submesh. Typically, you obtain meshes by traversing the object hierarchy of a
MDLAsset object, but you can also create meshes from your own vertex data or create parametric meshes. The
MDLMesh class also supports processing meshes to generate vertex attributes or to bake lighting information.