I will do my best to ensure the job is deliver in the best quality
Skip Navigation
Documentation
Model I/O
MDLMesh
Language:
API Changes:
None
Class
MDLMesh
A container for vertex buffer data to be used in rendering a 3D object.
SDKs
iOS 9.0+
macOS 10.11+
tvOS 9.0+
Framework
Model I/O
On This Page
Declaration
Overview
Topics
Relationships
See Also
Declaration
class MDLMesh : MDLObject
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
init(vertexBuffer: MDLMeshBuffer, vertexCount: Int, descriptor: MDLVertexDescriptor, submeshes: [MDLSubmesh])
Creates a mesh from a single vertex buffer with the specified parameters.
init(vertexBuffers: [MDLMeshBuffer], vertexCount: Int, descriptor: MDLVertexDescriptor, submeshes: [MDLSubmesh])
Creates a mesh by unifying vertex data from multiple sources with the specified parameters.
init(bufferAllocator: MDLMeshBufferAllocator?)
class func newSubdividedMesh(MDLMesh, submeshIndex: Int, subdivisionLevels: Int) -> Self?
C