---
title: mesh
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothbodycomponent/mesh
---

# mesh

The (simulation) mesh of the cloth body that defines the rest pose of the body.

## Declaration

```swift
var mesh: ClothMeshResource { get }
```

## Discussion

Discussion This acts as the initial pose of the body when initialMeshDraping is nil. The different stiffnesses of the assigned material determine in which ways and how firmly the body tries to preserve this rest pose. You can use resetDeformation(entity:) to restore the body back to this rest pose at any time. The topology of the mesh can influence the simulation behavior.

## See Also

### Creating a cloth body

- [init(mesh:meshDraping:)](realitykit/clothbodycomponent/init(mesh:meshdraping:).md)
- [initialMeshDraping](realitykit/clothbodycomponent/initialmeshdraping.md)
