Contents

MDLMesh

A container for vertex buffer data to be used in rendering a 3D object.

Declaration

class MDLMesh

Overview

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.

Topics

Creating a Custom Mesh

Working with Vertex Data

Generating Geometry Data

Generating Ambient Occlusion Data

Generating Light Map Data

Creating Parametric Meshes

Instance Methods

See Also

3D Asset Basics