Stay organized with collections
Save and categorize content based on your preferences.
GARMesh
Object that holds geometry mesh and transform data for GARStreetscapeGeometry
.
This object is immutable.
Summary
Inheritance
Inherits from:
NSObject
Properties
triangleCount
Number of triangles in the geometry mesh.
This is equivalent to the number of elements in triangles
.
vertexCount
Number of vertices in the geometry mesh.
vertices
A buffer of GARVertex
, which stores 3D vertex locations.
These vertices are relative to the geometry transform of the geometry. Units are in meters.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-14 UTC.
[null,null,["Last updated 2025-07-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eGARMesh\u003c/code\u003e is an immutable object that stores geometry mesh and transform data for \u003ccode\u003eGARStreetscapeGeometry\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the mesh data, including the number of triangles and vertices.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGARMesh\u003c/code\u003e includes buffers for triangle indices (\u003ccode\u003etriangles\u003c/code\u003e) and vertex locations (\u003ccode\u003evertices\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eVertex locations are in meters and relative to the geometry's transform.\u003c/p\u003e\n"]]],[],null,["# GARMesh Class Reference\n\nGARMesh\n=======\n\nObject that holds geometry mesh and transform data for [GARStreetscapeGeometry](/ar/reference/ios/interface/GARStreetscapeGeometry#interface_g_a_r_streetscape_geometry).\n\nThis object is immutable.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `NSObject`\n\n| ### Properties ||\n|---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [triangleCount](#trianglecount) | `NSUInteger` Number of triangles in the geometry mesh. |\n| [triangles](#triangles) | `const `[GARIndexTriangle](/ar/reference/ios/struct/GARIndexTriangle#struct_g_a_r_index_triangle)` *` A buffer of [GARIndexTriangle](/ar/reference/ios/struct/GARIndexTriangle#struct_g_a_r_index_triangle). |\n| [vertexCount](#vertexcount) | `NSUInteger` Number of vertices in the geometry mesh. |\n| [vertices](#vertices) | `const `[GARVertex](/ar/reference/ios/struct/GARVertex#struct_g_a_r_vertex)` *` A buffer of [GARVertex](/ar/reference/ios/struct/GARVertex#struct_g_a_r_vertex), which stores 3D vertex locations. |\n\nProperties\n----------\n\n### triangleCount\n\n```transact-sql\n@property(nonatomic, readonly) NSUInteger /ar/reference/ios/interface/GARMesh#trianglecount;\n``` \nNumber of triangles in the geometry mesh.\n\nThis is equivalent to the number of elements in [triangles](/ar/reference/ios/interface/GARMesh#triangles). \n\n### triangles\n\n```gdscript\n@property(nonatomic, readonly) const /ar/reference/ios/struct/GARIndexTriangle#struct_g_a_r_index_triangle */ar/reference/ios/interface/GARMesh#triangles;\n``` \nA buffer of [GARIndexTriangle](/ar/reference/ios/struct/GARIndexTriangle#struct_g_a_r_index_triangle).\n\nThe indices within each triangle are indices into the [vertices](/ar/reference/ios/interface/GARMesh#vertices) array. \n\n### vertexCount\n\n```transact-sql\n@property(nonatomic, readonly) NSUInteger /ar/reference/ios/interface/GARMesh#vertexcount;\n``` \nNumber of vertices in the geometry mesh. \n\n### vertices\n\n```gdscript\n@property(nonatomic, readonly) const /ar/reference/ios/struct/GARVertex#struct_g_a_r_vertex */ar/reference/ios/interface/GARMesh#vertices;\n``` \nA buffer of [GARVertex](/ar/reference/ios/struct/GARVertex#struct_g_a_r_vertex), which stores 3D vertex locations.\n\nThese vertices are relative to the geometry transform of the geometry. Units are in meters."]]