HERE Android SDK Developer's Guide

ARMeshObject

The class ARMeshObject is a member of com.here.android.mpa.ar .

Class Summary

public class ARMeshObject

extends com.here.android.mpa.ar.ARModelObject, java.lang.Object

Concrete 3D AR model objects with mesh.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in ARMeshObject
Constructors

ARMeshObject (GeoCoordinate position)

Construct AR mesh object

ARMeshObject (Vector3f position)

Construct AR mesh object

ARMeshObject (Vector3f position, GeoCoordinate direction)

Construct AR mesh object

ARMeshObject (GeoCoordinate position, LocalMesh mesh, Image texture)

Construct AR mesh object

ARMeshObject (Vector3f position, LocalMesh mesh, Image texture)

Construct AR mesh object

ARMeshObject (Vector3f position, GeoCoordinate direction, LocalMesh mesh, Image texture)

Construct AR mesh object

Method Summary

Table 2. Methods in ARMeshObject
Methods

public GeoCoordinate getGeoDirection ()

Get the geo direction of the mesh

public GeoCoordinate getGeoPosition ()

Get geo position of the mesh

public Vector3f getLocalPosition ()

Get local position of the mesh

public LocalMesh getMesh ()

Get the mesh associated with the object

public void setGeoDirection (GeoCoordinate direction)

Set the geo direction of the mesh

public void setGeoPosition (GeoCoordinate position)

Set the geo position of the mesh

public void setLocalPosition (Vector3f position)

Set local position of the mesh

public void setMesh (LocalMesh mesh)

Set the mesh associated with the object.

Class Details

Concrete 3D AR model objects with mesh. There are three types of AR mesh objects supported: - Geo positioned mesh object - Locally positioned mesh object - Locally positioned mesh object with additional geo direction

Constructor Details

ARMeshObject (GeoCoordinate position)

Construct AR mesh object

Parameters:

  • position

    Mesh geo position

ARMeshObject (Vector3f position)

Construct AR mesh object

Parameters:

  • position

    Position of the center of the mesh relative to the camera. Unit is meters

ARMeshObject (Vector3f position, GeoCoordinate direction)

Construct AR mesh object

Parameters:

  • position

    Position of the center of the mesh relative to the camera. Unit is meters

  • direction

    Geo direction of the mesh (where to point to)

ARMeshObject (GeoCoordinate position, LocalMesh mesh, Image texture)

Construct AR mesh object

Parameters:

  • position

    Mesh's geo position

  • mesh

    Object's mesh

  • texture

    Object's texture

ARMeshObject (Vector3f position, LocalMesh mesh, Image texture)

Construct AR mesh object

Parameters:

  • position

    Position of the center of the mesh relative to the camera. Unit is meters

  • mesh

    Object's mesh

  • texture

    Object's texture

ARMeshObject (Vector3f position, GeoCoordinate direction, LocalMesh mesh, Image texture)

Construct AR mesh object

Parameters:

  • position

    Position of the center of the mesh relative to the camera. Unit is meters

  • direction

    Waypoint geo position (where to point to)

  • mesh

    Object's mesh

  • texture

    Object's texture

Method Details

public GeoCoordinate getGeoDirection ()

Get the geo direction of the mesh

Returns:

geo direction of the mesh

public GeoCoordinate getGeoPosition ()

Get geo position of the mesh

Returns:

Geo position of the center of the mesh

public Vector3f getLocalPosition ()

Get local position of the mesh

Returns:

Position of the center of the mesh relative to the camera. Unit is meters

public LocalMesh getMesh ()

Get the mesh associated with the object

Returns:

LocalMesh object

public void setGeoDirection (GeoCoordinate direction)

Set the geo direction of the mesh

Parameters:

  • direction

    Geo direction of the mesh

public void setGeoPosition (GeoCoordinate position)

Set the geo position of the mesh

Parameters:

  • position

    Geo position of the center of the mesh

public void setLocalPosition (Vector3f position)

Set local position of the mesh

Parameters:

  • position

    Position of the center of the mesh relative to the camera. Unit is meters

public void setMesh (LocalMesh mesh)

Set the mesh associated with the object.

Parameters:

  • mesh

    An object representing the mesh to set.