interface IARPlaneGeometry (Niantic.ARDK.AR.IARPlaneGeometry)

Overview

interface IARPlaneGeometry: IDisposable {
    // properties

    ReadOnlyCollection<Vector3> BoundaryVertices;
    ReadOnlyCollection<Vector2> TextureCoordinates;
    ReadOnlyCollection<Int16> TriangleIndices;
    ReadOnlyCollection<Vector3> Vertices;
};

Detailed Documentation

Properties

ReadOnlyCollection<Vector3> BoundaryVertices

An array of vertex positions (x, y, z) for each point along the plane’s boundary.

Each position is in a coordinate system defined by the owning plane anchor’s Transform matrix. E.g. “local” to that plane.

The vertices only represent a boundary so this property is only useful if you’re interested in the general shape or outline of the plane.

ReadOnlyCollection<Vector2> TextureCoordinates

A flat buffer of texture coordinate values (u, v) for each point in the plane mesh.

Each value at a particular index provides the u, v coordinates for the corresponding vertex in the Vertices property.

Note

iOS-only value.

ReadOnlyCollection<Int16> TriangleIndices

A buffer of indices describing the triangle mesh formed by the plane geometry’s vertex data.

Each value represents an index into the Vertices and TextureCoordinates arrays. Each set of three represent the corners of a triangle in the mesh therefore, the number of triangles is TriangleIndices.Length / 3.

Note

iOS-only value.

ReadOnlyCollection<Vector3> Vertices

An array of vertex positions (x, y, z) for each point in the plane mesh.

Each position is in a coordinate system defined by the owning plane anchor’s Transform matrix. E.g. “local” to that plane.

Note

iOS-only value.