---
title: vertexCount
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlmesh/vertexcount
---

# vertexCount

The number of vertices in the mesh.

## Declaration

```swift
var vertexCount: Int { get set }
```

## Discussion

Discussion To determine the total data size of a vertex buffer, multiply this value by the stride property of the corresponding layout in the mesh’s vertexDescriptor object.

## See Also

### Working with Vertex Data

- [boundingBox](modelio/mdlmesh/boundingbox.md)
- [submeshes](modelio/mdlmesh/submeshes.md)
- [vertexBuffers](modelio/mdlmesh/vertexbuffers.md)
- [vertexDescriptor](modelio/mdlmesh/vertexdescriptor.md)
- [allocator](modelio/mdlmesh/allocator.md)
- [addAttribute(withName:format:)](modelio/mdlmesh/addattribute(withname:format:).md)
- [addAttribute(withName:format:type:data:stride:)](modelio/mdlmesh/addattribute(withname:format:type:data:stride:).md)
- [addAttribute(withName:format:type:data:stride:time:)](modelio/mdlmesh/addattribute(withname:format:type:data:stride:time:).md)
- [removeAttributeNamed(_:)](modelio/mdlmesh/removeattributenamed(_:).md)
- [replaceAttributeNamed(_:with:)](modelio/mdlmesh/replaceattributenamed(_:with:).md)
- [updateAttributeNamed(_:with:)](modelio/mdlmesh/updateattributenamed(_:with:).md)
- [addUnwrappedTextureCoordinates(forAttributeNamed:)](modelio/mdlmesh/addunwrappedtexturecoordinates(forattributenamed:).md)
- [vertexAttributeData(forAttributeNamed:)](modelio/mdlmesh/vertexattributedata(forattributenamed:).md)
- [vertexAttributeData(forAttributeNamed:as:)](modelio/mdlmesh/vertexattributedata(forattributenamed:as:).md)
