# GARMesh

Object that holds geometry mesh and transform data for `https://developers.google.com/ar/reference/ios/interface/GARStreetscapeGeometry#interface_g_a_r_streetscape_geometry`.

This object is immutable.

## Summary

### Inheritance

Inherits from: `NSObject`

| ### Properties ||
|---|---|
| `https://developers.google.com/ar/reference/ios/interface/GARMesh#trianglecount` | `NSUInteger` Number of triangles in the geometry mesh. |
| `https://developers.google.com/ar/reference/ios/interface/GARMesh#triangles` | `const https://developers.google.com/ar/reference/ios/struct/GARIndexTriangle#struct_g_a_r_index_triangle *` A buffer of `https://developers.google.com/ar/reference/ios/struct/GARIndexTriangle#struct_g_a_r_index_triangle`. |
| `https://developers.google.com/ar/reference/ios/interface/GARMesh#vertexcount` | `NSUInteger` Number of vertices in the geometry mesh. |
| `https://developers.google.com/ar/reference/ios/interface/GARMesh#vertices` | `const https://developers.google.com/ar/reference/ios/struct/GARVertex#struct_g_a_r_vertex *` A buffer of `https://developers.google.com/ar/reference/ios/struct/GARVertex#struct_g_a_r_vertex`, which stores 3D vertex locations. |

## Properties

### triangleCount

```
@property(nonatomic, readonly) NSUInteger https://developers.google.com/ar/reference/ios/interface/GARMesh#trianglecount;
```
Number of triangles in the geometry mesh.

This is equivalent to the number of elements in `https://developers.google.com/ar/reference/ios/interface/GARMesh#triangles`.

### triangles

```
@property(nonatomic, readonly) const https://developers.google.com/ar/reference/ios/struct/GARIndexTriangle#struct_g_a_r_index_triangle *https://developers.google.com/ar/reference/ios/interface/GARMesh#triangles;
```
A buffer of `https://developers.google.com/ar/reference/ios/struct/GARIndexTriangle#struct_g_a_r_index_triangle`.

The indices within each triangle are indices into the `https://developers.google.com/ar/reference/ios/interface/GARMesh#vertices` array.

### vertexCount

```
@property(nonatomic, readonly) NSUInteger https://developers.google.com/ar/reference/ios/interface/GARMesh#vertexcount;
```
Number of vertices in the geometry mesh.

### vertices

```
@property(nonatomic, readonly) const https://developers.google.com/ar/reference/ios/struct/GARVertex#struct_g_a_r_vertex *https://developers.google.com/ar/reference/ios/interface/GARMesh#vertices;
```
A buffer of `https://developers.google.com/ar/reference/ios/struct/GARVertex#struct_g_a_r_vertex`, which stores 3D vertex locations.

These vertices are relative to the geometry transform of the geometry. Units are in meters.